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
- XmlNullResolver.cs
- _AutoWebProxyScriptWrapper.cs
- wmiprovider.cs
- Baml2006KnownTypes.cs
- DataObjectMethodAttribute.cs
- CloseSequenceResponse.cs
- RsaSecurityTokenAuthenticator.cs
- CommandHelpers.cs
- RoleManagerSection.cs
- LiteralTextContainerControlBuilder.cs
- Vector3DValueSerializer.cs
- TextServicesLoader.cs
- TTSEngineTypes.cs
- BinHexEncoding.cs
- DataGridItemEventArgs.cs
- PreloadHost.cs
- CustomSignedXml.cs
- Mutex.cs
- MethodImplAttribute.cs
- WebPartMinimizeVerb.cs
- FileLogRecord.cs
- DataRowChangeEvent.cs
- AuthorizationRuleCollection.cs
- GradientStopCollection.cs
- followingquery.cs
- ServiceInstanceProvider.cs
- NewExpression.cs
- RelationshipDetailsRow.cs
- SQLBytesStorage.cs
- Stack.cs
- FilterEventArgs.cs
- CompilerParameters.cs
- ThreadStateException.cs
- Properties.cs
- ISAPIRuntime.cs
- RuleCache.cs
- BindingsCollection.cs
- IssuanceLicense.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ValidationPropertyAttribute.cs
- CompressEmulationStream.cs
- TypeBuilderInstantiation.cs
- RealizationDrawingContextWalker.cs
- CustomPopupPlacement.cs
- LockCookie.cs
- TemplatedAdorner.cs
- SimpleWorkerRequest.cs
- CodeGen.cs
- UrlPropertyAttribute.cs
- ItemType.cs
- BaseDataBoundControl.cs
- XPathItem.cs
- FactoryGenerator.cs
- XamlStyleSerializer.cs
- MainMenu.cs
- _Events.cs
- TraceContextRecord.cs
- EntityDataSourceWrapperCollection.cs
- OrderedDictionary.cs
- TypeDependencyAttribute.cs
- Decimal.cs
- ProfileParameter.cs
- DependencyProperty.cs
- ToolboxItemImageConverter.cs
- HyperlinkAutomationPeer.cs
- BindingRestrictions.cs
- OpacityConverter.cs
- CheckBox.cs
- BaseTreeIterator.cs
- XmlSequenceWriter.cs
- IssuanceTokenProviderState.cs
- GrammarBuilderPhrase.cs
- TemplatedWizardStep.cs
- ByteBufferPool.cs
- figurelength.cs
- CharacterHit.cs
- CompensatableSequenceActivity.cs
- XmlBinaryReaderSession.cs
- SoapCodeExporter.cs
- ThreadInterruptedException.cs
- SynchronizingStream.cs
- ElementMarkupObject.cs
- DataRecordInternal.cs
- ToolboxDataAttribute.cs
- ProgressChangedEventArgs.cs
- WorkflowApplicationUnloadedException.cs
- ComponentResourceManager.cs
- DecimalKeyFrameCollection.cs
- ArraySubsetEnumerator.cs
- CapiHashAlgorithm.cs
- SoapSchemaImporter.cs
- SafeNativeMethodsMilCoreApi.cs
- DataGridViewColumnEventArgs.cs
- ModelItemExtensions.cs
- ComEventsHelper.cs
- AdornerLayer.cs
- PrePostDescendentsWalker.cs
- ProfileSection.cs
- UriTemplateLiteralQueryValue.cs
- FrameworkElement.cs