Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / EntitySql / AST / AliasedExpr.cs / 1305376 / AliasedExpr.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- namespace System.Data.Common.EntitySql.AST { using System; using System.Globalization; using System.Collections; using System.Collections.Generic; using System.Diagnostics; ////// AST node for an aliased expression. /// internal sealed class AliasedExpr : Node { private readonly Node _expr; private readonly Identifier _alias; ////// Constructs an aliased expression node. /// internal AliasedExpr(Node expr, Identifier alias) { Debug.Assert(expr != null, "expr != null"); Debug.Assert(alias != null, "alias != null"); if (String.IsNullOrEmpty(alias.Name)) { throw EntityUtil.EntitySqlError(alias.ErrCtx, System.Data.Entity.Strings.InvalidEmptyIdentifier); } _expr = expr; _alias = alias; } ////// Constructs an aliased expression node with null alias. /// internal AliasedExpr(Node expr) { Debug.Assert(expr != null, "expr != null"); _expr = expr; } internal Node Expr { get { return _expr; } } ////// Returns expression alias identifier, or null if not aliased. /// internal Identifier Alias { get { return _alias; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- namespace System.Data.Common.EntitySql.AST { using System; using System.Globalization; using System.Collections; using System.Collections.Generic; using System.Diagnostics; ////// AST node for an aliased expression. /// internal sealed class AliasedExpr : Node { private readonly Node _expr; private readonly Identifier _alias; ////// Constructs an aliased expression node. /// internal AliasedExpr(Node expr, Identifier alias) { Debug.Assert(expr != null, "expr != null"); Debug.Assert(alias != null, "alias != null"); if (String.IsNullOrEmpty(alias.Name)) { throw EntityUtil.EntitySqlError(alias.ErrCtx, System.Data.Entity.Strings.InvalidEmptyIdentifier); } _expr = expr; _alias = alias; } ////// Constructs an aliased expression node with null alias. /// internal AliasedExpr(Node expr) { Debug.Assert(expr != null, "expr != null"); _expr = expr; } internal Node Expr { get { return _expr; } } ////// Returns expression alias identifier, or null if not aliased. /// internal Identifier Alias { get { return _alias; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FixedFindEngine.cs
- ExpressionBindings.cs
- Identity.cs
- CopyOnWriteList.cs
- MappingItemCollection.cs
- DataTableMappingCollection.cs
- WebPartHelpVerb.cs
- EventRouteFactory.cs
- WorkflowMarkupSerializationException.cs
- OleDbRowUpdatedEvent.cs
- DecimalKeyFrameCollection.cs
- TableCell.cs
- MemoryPressure.cs
- NotifyIcon.cs
- ToolboxItem.cs
- ElapsedEventArgs.cs
- NameValueConfigurationCollection.cs
- XPathSelfQuery.cs
- NamespaceQuery.cs
- DefaultPropertyAttribute.cs
- XmlComment.cs
- EventLog.cs
- ComponentRenameEvent.cs
- GenericEnumerator.cs
- Model3DGroup.cs
- ComplexType.cs
- InplaceBitmapMetadataWriter.cs
- SafeCoTaskMem.cs
- RequestValidator.cs
- ClassData.cs
- DebugTraceHelper.cs
- TextElementAutomationPeer.cs
- PtsHelper.cs
- CodeAttributeDeclarationCollection.cs
- DataSvcMapFile.cs
- FacetDescription.cs
- Delegate.cs
- SymLanguageVendor.cs
- DesignTableCollection.cs
- GroupStyle.cs
- SiteMapPath.cs
- UpdateCompiler.cs
- DataGridItemEventArgs.cs
- ToolStripPanelSelectionGlyph.cs
- Calendar.cs
- FirstMatchCodeGroup.cs
- GridViewAutoFormat.cs
- HitTestParameters.cs
- Item.cs
- ListViewItem.cs
- SqlConnectionPoolGroupProviderInfo.cs
- TrustLevelCollection.cs
- CheckBoxDesigner.cs
- MarginCollapsingState.cs
- Axis.cs
- HostingMessageProperty.cs
- ConsoleKeyInfo.cs
- ActionMismatchAddressingException.cs
- StringReader.cs
- hresults.cs
- MimeBasePart.cs
- HttpListenerElement.cs
- GridEntry.cs
- BoundPropertyEntry.cs
- SafeFileHandle.cs
- cache.cs
- safelink.cs
- EntityReference.cs
- AssemblyAssociatedContentFileAttribute.cs
- TimeZoneNotFoundException.cs
- SqlProviderServices.cs
- DynamicDataRoute.cs
- TypeUtil.cs
- DropDownButton.cs
- CompilerResults.cs
- ClonableStack.cs
- LayoutUtils.cs
- ADMembershipUser.cs
- SafeFileHandle.cs
- DataGridViewComboBoxEditingControl.cs
- TypeNameHelper.cs
- Annotation.cs
- UnsafeNativeMethods.cs
- DataGridItem.cs
- ReadOnlyDictionary.cs
- Clock.cs
- SimpleType.cs
- RubberbandSelector.cs
- RecognizedPhrase.cs
- Transform.cs
- TextContainerChangeEventArgs.cs
- TableColumn.cs
- TextLineResult.cs
- VSDExceptions.cs
- AppDomainShutdownMonitor.cs
- ZipPackagePart.cs
- Oid.cs
- ZipArchive.cs
- XmlILModule.cs
- RestClientProxyHandler.cs