Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / EntitySql / AST / TypeDefinition.cs / 1305376 / TypeDefinition.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 a collection type definition.
///
internal sealed class CollectionTypeDefinition : Node
{
private readonly Node _elementTypeDef;
///
/// Initializes collection type definition using the element type definition.
///
internal CollectionTypeDefinition(Node elementTypeDef)
{
this._elementTypeDef = elementTypeDef;
}
///
/// Returns collection element type defintion.
///
internal Node ElementTypeDef
{
get { return this._elementTypeDef; }
}
}
///
/// Represents an ast node for a reference type definition.
///
internal sealed class RefTypeDefinition : Node
{
private readonly Node _refTypeIdentifier;
///
/// Initializes reference type definition using the referenced type identifier.
///
internal RefTypeDefinition(Node refTypeIdentifier)
{
this._refTypeIdentifier = refTypeIdentifier;
}
///
/// Returns referenced type identifier.
///
internal Node RefTypeIdentifier
{
get { return this._refTypeIdentifier; }
}
}
///
/// Represents an ast node for a row type definition.
///
internal sealed class RowTypeDefinition : Node
{
private readonly NodeList _propDefList;
///
/// Initializes row type definition using the property definitions.
///
internal RowTypeDefinition(NodeList propDefList)
{
this._propDefList = propDefList;
}
///
/// Returns property definitions.
///
internal NodeList Properties
{
get { return this._propDefList; }
}
}
///
/// Represents an ast node for a property definition (name/type)
///
internal sealed class PropDefinition : Node
{
private readonly Identifier _name;
private readonly Node _typeDefExpr;
///
/// Initializes property definition using the name and the type definition.
///
///
internal PropDefinition(Identifier name, Node typeDefExpr)
{
this._name = name;
this._typeDefExpr = typeDefExpr;
}
///
/// Returns property name.
///
internal Identifier Name
{
get { return this._name; }
}
///
/// Returns property type.
///
internal Node Type
{
get { return this._typeDefExpr; }
}
}
}
// 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;
///
/// Represents an ast node for a collection type definition.
///
internal sealed class CollectionTypeDefinition : Node
{
private readonly Node _elementTypeDef;
///
/// Initializes collection type definition using the element type definition.
///
internal CollectionTypeDefinition(Node elementTypeDef)
{
this._elementTypeDef = elementTypeDef;
}
///
/// Returns collection element type defintion.
///
internal Node ElementTypeDef
{
get { return this._elementTypeDef; }
}
}
///
/// Represents an ast node for a reference type definition.
///
internal sealed class RefTypeDefinition : Node
{
private readonly Node _refTypeIdentifier;
///
/// Initializes reference type definition using the referenced type identifier.
///
internal RefTypeDefinition(Node refTypeIdentifier)
{
this._refTypeIdentifier = refTypeIdentifier;
}
///
/// Returns referenced type identifier.
///
internal Node RefTypeIdentifier
{
get { return this._refTypeIdentifier; }
}
}
///
/// Represents an ast node for a row type definition.
///
internal sealed class RowTypeDefinition : Node
{
private readonly NodeList _propDefList;
///
/// Initializes row type definition using the property definitions.
///
internal RowTypeDefinition(NodeList propDefList)
{
this._propDefList = propDefList;
}
///
/// Returns property definitions.
///
internal NodeList Properties
{
get { return this._propDefList; }
}
}
///
/// Represents an ast node for a property definition (name/type)
///
internal sealed class PropDefinition : Node
{
private readonly Identifier _name;
private readonly Node _typeDefExpr;
///
/// Initializes property definition using the name and the type definition.
///
///
internal PropDefinition(Identifier name, Node typeDefExpr)
{
this._name = name;
this._typeDefExpr = typeDefExpr;
}
///
/// Returns property name.
///
internal Identifier Name
{
get { return this._name; }
}
///
/// Returns property type.
///
internal Node Type
{
get { return this._typeDefExpr; }
}
}
}
// 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
- QueueProcessor.cs
- DataGridViewLinkColumn.cs
- FileUtil.cs
- DefaultAsyncDataDispatcher.cs
- HyperLink.cs
- ContentFilePart.cs
- DocumentsTrace.cs
- RegionIterator.cs
- SpeakProgressEventArgs.cs
- DictionaryTraceRecord.cs
- SqlFacetAttribute.cs
- LinqDataSourceUpdateEventArgs.cs
- ConvertersCollection.cs
- AssemblyName.cs
- XsltOutput.cs
- SqlCacheDependencyDatabaseCollection.cs
- InternalConfigSettingsFactory.cs
- UpWmlMobileTextWriter.cs
- EntryWrittenEventArgs.cs
- Fonts.cs
- PreservationFileWriter.cs
- ReadOnlyCollection.cs
- TheQuery.cs
- CompositeDataBoundControl.cs
- WindowsFont.cs
- SystemInfo.cs
- FlowLayout.cs
- Point4D.cs
- PropertyTabAttribute.cs
- RequestFactory.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- Menu.cs
- StrokeCollection.cs
- OleDbErrorCollection.cs
- SQLInt32.cs
- WebProxyScriptElement.cs
- QueryableDataSourceEditData.cs
- TickBar.cs
- BitmapPalettes.cs
- TdsParserStateObject.cs
- MediaContext.cs
- XPathExpr.cs
- KeyGestureValueSerializer.cs
- EastAsianLunisolarCalendar.cs
- XmlAggregates.cs
- GeneralTransform.cs
- TraceContext.cs
- EncoderNLS.cs
- SessionStateModule.cs
- __ComObject.cs
- SerialReceived.cs
- AttachedAnnotationChangedEventArgs.cs
- NavigationPropertyEmitter.cs
- FrameDimension.cs
- ListViewDataItem.cs
- RelatedImageListAttribute.cs
- FormViewCommandEventArgs.cs
- ListParagraph.cs
- SerializationFieldInfo.cs
- XmlSchemaAttribute.cs
- TableCellCollection.cs
- TreeNodeConverter.cs
- MimeMapping.cs
- ListItemCollection.cs
- ParameterCollection.cs
- GlyphElement.cs
- DrawItemEvent.cs
- PropertyTab.cs
- SQLMembershipProvider.cs
- XmlMemberMapping.cs
- SafeIUnknown.cs
- __Error.cs
- ProtocolsConfigurationEntry.cs
- DataStorage.cs
- StringUtil.cs
- NumericUpDownAcceleration.cs
- OracleRowUpdatedEventArgs.cs
- SystemParameters.cs
- MsmqIntegrationProcessProtocolHandler.cs
- FilterElement.cs
- ConcurrencyBehavior.cs
- HostedElements.cs
- Timer.cs
- ConnectionStringSettings.cs
- WindowsFont.cs
- codemethodreferenceexpression.cs
- RightsManagementEncryptedStream.cs
- DataGridViewRowsRemovedEventArgs.cs
- SerializationEventsCache.cs
- LongTypeConverter.cs
- SafeRightsManagementPubHandle.cs
- RemoteHelper.cs
- ReachPageContentCollectionSerializer.cs
- StrokeNodeOperations2.cs
- smtppermission.cs
- DataViewSettingCollection.cs
- JsonFormatReaderGenerator.cs
- ScrollContentPresenter.cs
- RegexCharClass.cs
- LinqDataSourceSelectEventArgs.cs