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
- XmlExpressionDumper.cs
- BackStopAuthenticationModule.cs
- QueryableDataSourceHelper.cs
- StateMachineExecutionState.cs
- TTSEngineProxy.cs
- PrintPreviewControl.cs
- input.cs
- LambdaCompiler.Binary.cs
- UnhandledExceptionEventArgs.cs
- DoubleAnimationUsingPath.cs
- ResourcesGenerator.cs
- BitmapCache.cs
- LayeredChannelListener.cs
- RC2CryptoServiceProvider.cs
- FamilyTypefaceCollection.cs
- LoaderAllocator.cs
- GroupBoxAutomationPeer.cs
- DotExpr.cs
- PreProcessor.cs
- AspNetSynchronizationContext.cs
- bindurihelper.cs
- ConcurrentDictionary.cs
- DispatcherOperation.cs
- _ProxyChain.cs
- EntityViewGenerationAttribute.cs
- TraceContext.cs
- URLIdentityPermission.cs
- DataStorage.cs
- SendContent.cs
- DescendentsWalker.cs
- MessageDesigner.cs
- SaveLedgerEntryRequest.cs
- CreateUserWizardStep.cs
- BufferedGraphicsContext.cs
- StorageConditionPropertyMapping.cs
- Margins.cs
- SqlAliasesReferenced.cs
- ListSortDescriptionCollection.cs
- AnimationTimeline.cs
- CompatibleComparer.cs
- CookieHandler.cs
- ListInitExpression.cs
- WorkflowOwnerAsyncResult.cs
- ComponentDispatcher.cs
- EditingCommands.cs
- CheckBoxBaseAdapter.cs
- ChangeInterceptorAttribute.cs
- RestClientProxyHandler.cs
- ValidationError.cs
- SQLGuid.cs
- FixedSOMContainer.cs
- PageCopyCount.cs
- DataGridViewCellMouseEventArgs.cs
- InfiniteIntConverter.cs
- XamlWriter.cs
- CodeTypeReferenceExpression.cs
- AppSettingsReader.cs
- TextRunTypographyProperties.cs
- InputMethod.cs
- BlurBitmapEffect.cs
- DataRowChangeEvent.cs
- HttpGetProtocolImporter.cs
- TemplateParser.cs
- TextFormatter.cs
- ComboBoxRenderer.cs
- ApplicationServicesHostFactory.cs
- TemplateLookupAction.cs
- GenericsNotImplementedException.cs
- WebBrowserDocumentCompletedEventHandler.cs
- AccessDataSource.cs
- TabletCollection.cs
- log.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- AutomationPropertyInfo.cs
- RotateTransform3D.cs
- QueuePathDialog.cs
- Delegate.cs
- CodeTypeDeclaration.cs
- BrushConverter.cs
- EntityDataSourceSelectedEventArgs.cs
- PolygonHotSpot.cs
- DesignerVerb.cs
- SqlDependencyListener.cs
- DataGridViewCellEventArgs.cs
- Help.cs
- RequestUriProcessor.cs
- XamlBuildTaskServices.cs
- WebBrowserEvent.cs
- DataRelationCollection.cs
- TargetParameterCountException.cs
- PreparingEnlistment.cs
- Odbc32.cs
- DesignUtil.cs
- RewritingSimplifier.cs
- Substitution.cs
- RuleAction.cs
- MemoryFailPoint.cs
- TransportationConfigurationTypeInstallComponent.cs
- VirtualPath.cs
- PropertyManager.cs