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
- EntityDataSourceQueryBuilder.cs
- StorageSetMapping.cs
- WhitespaceRuleReader.cs
- X509Extension.cs
- webproxy.cs
- autovalidator.cs
- DataControlButton.cs
- SqlXml.cs
- SystemParameters.cs
- Vector3D.cs
- SafeHandles.cs
- RootBrowserWindow.cs
- DefaultProxySection.cs
- ComponentCommands.cs
- RelatedPropertyManager.cs
- DataObject.cs
- StyleSheet.cs
- LifetimeMonitor.cs
- ELinqQueryState.cs
- PageParserFilter.cs
- DependentList.cs
- SQLBinary.cs
- ActiveXHost.cs
- OrderedEnumerableRowCollection.cs
- CompositeDispatchFormatter.cs
- FloatUtil.cs
- MsmqIntegrationChannelFactory.cs
- ColumnMapProcessor.cs
- XmlSchemaInfo.cs
- EntityViewGenerator.cs
- CannotUnloadAppDomainException.cs
- BuildProviderCollection.cs
- VerifyHashRequest.cs
- XPathConvert.cs
- NativeMethods.cs
- OptimizerPatterns.cs
- FrameworkContentElementAutomationPeer.cs
- ArgumentFixer.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- XamlReaderHelper.cs
- ExpressionVisitor.cs
- TcpStreams.cs
- ICspAsymmetricAlgorithm.cs
- SecurityHelper.cs
- BuildProvider.cs
- BrowserCapabilitiesCompiler.cs
- DataComponentMethodGenerator.cs
- TextEditorLists.cs
- AlgoModule.cs
- ArgumentOutOfRangeException.cs
- Cursors.cs
- ControlCachePolicy.cs
- DataMisalignedException.cs
- Line.cs
- XmlSchemaInclude.cs
- DesignTimeParseData.cs
- FilteredAttributeCollection.cs
- HttpConfigurationContext.cs
- Vector3D.cs
- DbBuffer.cs
- TraceEventCache.cs
- LassoSelectionBehavior.cs
- XmlExtensionFunction.cs
- EncoderNLS.cs
- StylusPointProperty.cs
- ExchangeUtilities.cs
- BitmapEffectOutputConnector.cs
- XmlSchemaSequence.cs
- DiffuseMaterial.cs
- ParseChildrenAsPropertiesAttribute.cs
- CallContext.cs
- TraceFilter.cs
- RemoteWebConfigurationHostStream.cs
- CfgParser.cs
- sqlnorm.cs
- SafeRightsManagementSessionHandle.cs
- ADConnectionHelper.cs
- TemplateKeyConverter.cs
- SiteMapDataSourceView.cs
- TypeResolvingOptions.cs
- Inflater.cs
- FamilyTypefaceCollection.cs
- FormsAuthenticationConfiguration.cs
- EventLogException.cs
- ParserStack.cs
- SetStateDesigner.cs
- TextRange.cs
- ComponentDispatcher.cs
- StreamResourceInfo.cs
- CollectionViewGroup.cs
- DataConnectionHelper.cs
- RightsManagementPermission.cs
- COM2PropertyBuilderUITypeEditor.cs
- DebugView.cs
- EmbeddedObject.cs
- CodeMemberProperty.cs
- HttpListenerTimeoutManager.cs
- LineVisual.cs
- ListItemViewAttribute.cs
- Light.cs