Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / EntitySql / AST / NamespaceImport.cs / 1305376 / NamespaceImport.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;
///
/// Represents an ast node for namespace import (using nsABC;)
///
internal sealed class NamespaceImport : Node
{
private readonly Identifier _namespaceAlias;
private readonly Node _namespaceName;
///
/// Initializes a single name import.
///
internal NamespaceImport(Identifier idenitifier)
{
_namespaceName = idenitifier;
}
///
/// Initializes a single name import.
///
internal NamespaceImport(DotExpr dorExpr)
{
_namespaceName = dorExpr;
}
///
/// Initializes aliased import.
///
internal NamespaceImport(BuiltInExpr bltInExpr)
{
_namespaceAlias = null;
Identifier aliasId = bltInExpr.Arg1 as Identifier;
if (aliasId == null)
{
throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx, System.Data.Entity.Strings.InvalidNamespaceAlias);
}
_namespaceAlias = aliasId;
_namespaceName = bltInExpr.Arg2;
}
///
/// Returns ns alias id if exists.
///
internal Identifier Alias
{
get { return _namespaceAlias; }
}
///
/// Returns namespace name.
///
internal Node NamespaceName
{
get { return _namespaceName; }
}
}
}
// 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
- ReadOnlyHierarchicalDataSourceView.cs
- SpeakInfo.cs
- HostingPreferredMapPath.cs
- Events.cs
- SerializationAttributes.cs
- TextBox.cs
- RegexCode.cs
- LoginName.cs
- DesignParameter.cs
- WsdlEndpointConversionContext.cs
- ObjectIDGenerator.cs
- PTUtility.cs
- TransformerInfoCollection.cs
- StringResourceManager.cs
- PageBuildProvider.cs
- DisposableCollectionWrapper.cs
- DomainConstraint.cs
- SiblingIterators.cs
- SQLMembershipProvider.cs
- MarkupProperty.cs
- StaticSiteMapProvider.cs
- GlobalDataBindingHandler.cs
- Bezier.cs
- SchemaTypeEmitter.cs
- RegexCapture.cs
- Attributes.cs
- DbDeleteCommandTree.cs
- RealizationDrawingContextWalker.cs
- RubberbandSelector.cs
- ConfigurationSection.cs
- GenericWebPart.cs
- ServiceRoute.cs
- SortedList.cs
- SourceSwitch.cs
- BinaryEditor.cs
- ListViewGroup.cs
- WebPartZone.cs
- DialogResultConverter.cs
- BamlStream.cs
- SafeSecurityHandles.cs
- RotateTransform.cs
- CircleHotSpot.cs
- AnonymousIdentificationSection.cs
- TextTrailingCharacterEllipsis.cs
- ImageMetadata.cs
- DoubleAnimationUsingPath.cs
- RSAOAEPKeyExchangeFormatter.cs
- OrderedParallelQuery.cs
- BaseCollection.cs
- DataFormats.cs
- CategoriesDocument.cs
- NamedPipeAppDomainProtocolHandler.cs
- RelationalExpressions.cs
- log.cs
- ShaderEffect.cs
- wgx_exports.cs
- Serializer.cs
- diagnosticsswitches.cs
- KeyTimeConverter.cs
- State.cs
- BooleanExpr.cs
- OutputCacheSettings.cs
- MultiSelectRootGridEntry.cs
- RemoteWebConfigurationHostServer.cs
- Solver.cs
- ReadOnlyObservableCollection.cs
- Opcode.cs
- CommandID.cs
- DBSchemaRow.cs
- CodeGenerator.cs
- DataGridViewRowsRemovedEventArgs.cs
- LineServicesCallbacks.cs
- FormViewRow.cs
- WorkItem.cs
- SqlConnectionHelper.cs
- TreeNodeCollection.cs
- EnumerableRowCollection.cs
- Rotation3DKeyFrameCollection.cs
- CatalogPart.cs
- WCFModelStrings.Designer.cs
- CodeTypeDeclarationCollection.cs
- ProfilePropertySettingsCollection.cs
- BezierSegment.cs
- OpenFileDialog.cs
- TimeSpanConverter.cs
- SmtpLoginAuthenticationModule.cs
- MenuAutoFormat.cs
- _KerberosClient.cs
- SecureUICommand.cs
- XmlSchemaNotation.cs
- MatchNoneMessageFilter.cs
- SmtpClient.cs
- MsmqBindingElementBase.cs
- CodeIterationStatement.cs
- itemelement.cs
- HitTestParameters.cs
- CollectionViewSource.cs
- Axis.cs
- SourceExpressionException.cs
- ProcessHostServerConfig.cs