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
- AuthorizationPolicyTypeElementCollection.cs
- VsPropertyGrid.cs
- PeerCredential.cs
- DataServicePagingProviderWrapper.cs
- BlurEffect.cs
- Rule.cs
- AppSettingsExpressionEditor.cs
- MDIWindowDialog.cs
- ResourceManager.cs
- CatalogPart.cs
- ErrorHandlerModule.cs
- VectorValueSerializer.cs
- ReflectionPermission.cs
- FontDifferentiator.cs
- GroupItemAutomationPeer.cs
- DataGridViewCellValueEventArgs.cs
- DataSourceXmlElementAttribute.cs
- ConstraintManager.cs
- URLAttribute.cs
- DesignerHierarchicalDataSourceView.cs
- Pointer.cs
- ReferentialConstraint.cs
- MissingSatelliteAssemblyException.cs
- XmlSchemaGroup.cs
- SafeViewOfFileHandle.cs
- DataGridPageChangedEventArgs.cs
- TdsParameterSetter.cs
- Parser.cs
- OperatingSystem.cs
- ApplicationFileCodeDomTreeGenerator.cs
- CqlIdentifiers.cs
- StrokeNodeEnumerator.cs
- InstanceLockException.cs
- ToolStripDropDownDesigner.cs
- DoubleLinkListEnumerator.cs
- XmlException.cs
- FontCacheLogic.cs
- Size.cs
- RepeatBehaviorConverter.cs
- SystemSounds.cs
- TrustLevel.cs
- MetadataPropertyAttribute.cs
- LineServices.cs
- XamlToRtfParser.cs
- DateTimeOffsetStorage.cs
- WindowsTab.cs
- UidManager.cs
- ValueChangedEventManager.cs
- MeasureItemEvent.cs
- Behavior.cs
- SaveFileDialog.cs
- ScrollableControl.cs
- Operand.cs
- OperationInfo.cs
- XPSSignatureDefinition.cs
- XmlCollation.cs
- HostExecutionContextManager.cs
- filewebrequest.cs
- Operator.cs
- CommonXSendMessage.cs
- MaskPropertyEditor.cs
- IncrementalCompileAnalyzer.cs
- ProcessingInstructionAction.cs
- MaskedTextBoxTextEditorDropDown.cs
- BufferedResponseStream.cs
- Int16.cs
- InvokeMemberBinder.cs
- SqlReorderer.cs
- ByteRangeDownloader.cs
- RuleProcessor.cs
- PrinterResolution.cs
- SqlConnectionPoolGroupProviderInfo.cs
- PanelStyle.cs
- BoolExpressionVisitors.cs
- EntityReference.cs
- KoreanCalendar.cs
- ConfigPathUtility.cs
- sqlstateclientmanager.cs
- CachedTypeface.cs
- TableSectionStyle.cs
- XmlChoiceIdentifierAttribute.cs
- MouseDevice.cs
- PreviewPrintController.cs
- LabelEditEvent.cs
- CalendarDay.cs
- SafeLocalAllocation.cs
- AnnotationHelper.cs
- FactoryGenerator.cs
- XamlToRtfParser.cs
- CrossSiteScriptingValidation.cs
- BigInt.cs
- FactoryMaker.cs
- SpeechSynthesizer.cs
- ViewStateModeByIdAttribute.cs
- Serializer.cs
- ReachSerializationCacheItems.cs
- ProvidePropertyAttribute.cs
- DetailsViewRowCollection.cs
- KeyValueConfigurationElement.cs
- XmlIterators.cs