Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StateMachineSubscriptionManager.cs
- XmlParserContext.cs
- SerializationSectionGroup.cs
- SkinBuilder.cs
- BindableAttribute.cs
- AsyncPostBackErrorEventArgs.cs
- ObjectConverter.cs
- WebPartCloseVerb.cs
- PointLight.cs
- ConstrainedDataObject.cs
- DeploymentSection.cs
- ProtectedConfiguration.cs
- ExtentCqlBlock.cs
- PolyLineSegmentFigureLogic.cs
- GenericsInstances.cs
- PropertyToken.cs
- TreeNode.cs
- ValidatorUtils.cs
- BitmapMetadataEnumerator.cs
- NavigationFailedEventArgs.cs
- ThemeableAttribute.cs
- FrameworkContextData.cs
- ValidateNames.cs
- SafeNativeMethods.cs
- HtmlButton.cs
- AccessibleObject.cs
- SoapReflectionImporter.cs
- Pkcs7Signer.cs
- ProcessModelSection.cs
- initElementDictionary.cs
- ReadOnlyCollectionBuilder.cs
- PermissionToken.cs
- SemanticResolver.cs
- FullTextState.cs
- PrtCap_Base.cs
- SecurityContextTokenCache.cs
- WebException.cs
- TextFormatter.cs
- RegularExpressionValidator.cs
- ValidationResult.cs
- DataGridViewRowPostPaintEventArgs.cs
- RuleSetCollection.cs
- RelOps.cs
- SamlConditions.cs
- TreeViewCancelEvent.cs
- RegisteredHiddenField.cs
- StyleXamlParser.cs
- RtfToken.cs
- AppDomainAttributes.cs
- OrCondition.cs
- WebPartCollection.cs
- UnionCodeGroup.cs
- LocalizabilityAttribute.cs
- QueryRewriter.cs
- ImpersonateTokenRef.cs
- DataGridViewCheckBoxCell.cs
- SqlDataSourceFilteringEventArgs.cs
- DataContractSerializerElement.cs
- WrappedIUnknown.cs
- WebServiceData.cs
- AnnotationResourceCollection.cs
- Vector3DAnimationBase.cs
- GeneralTransform3DCollection.cs
- DbConnectionOptions.cs
- SqlSelectStatement.cs
- DragDropHelper.cs
- UIElement3D.cs
- XmlAttributeAttribute.cs
- CodeDomExtensionMethods.cs
- DynamicResourceExtension.cs
- DefaultBindingPropertyAttribute.cs
- SecUtil.cs
- MessagingDescriptionAttribute.cs
- EditCommandColumn.cs
- ConfigurationPropertyAttribute.cs
- BinaryKeyIdentifierClause.cs
- CompoundFileDeflateTransform.cs
- XmlEventCache.cs
- ManagementInstaller.cs
- ByteStream.cs
- WorkflowMarkupSerializationManager.cs
- _Semaphore.cs
- OutputCacheSection.cs
- ZoneIdentityPermission.cs
- ConfigurationElementCollection.cs
- SqlProcedureAttribute.cs
- GridLength.cs
- DBBindings.cs
- GlobalProxySelection.cs
- FixedSOMElement.cs
- AppManager.cs
- DataTableReader.cs
- DeflateStream.cs
- TextTreeUndoUnit.cs
- DefaultEventAttribute.cs
- TraversalRequest.cs
- SelectionGlyph.cs
- PeerChannelFactory.cs
- MonitorWrapper.cs
- SecurityUtils.cs