Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / RefType.cs / 1305376 / RefType.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Data.Common; using System.Text; namespace System.Data.Metadata.Edm { ////// Class representing a ref type /// public sealed class RefType : EdmType { #region Constructors ////// The constructor for constructing a RefType object with the entity type it references /// /// The entity type that this ref type references ///Thrown if entityType argument is null internal RefType(EntityType entityType) : base(GetIdentity(EntityUtil.GenericCheckArgumentNull(entityType, "entityType")), EdmConstants.TransientNamespace, entityType.DataSpace) { _elementType = entityType; SetReadOnly(); } #endregion #region Fields private readonly EntityTypeBase _elementType; #endregion #region Properties ////// Returns the kind of the type /// public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.RefType; } } ////// The entity type that this ref type references /// [MetadataProperty(BuiltInTypeKind.EntityTypeBase, false)] public EntityTypeBase ElementType { get { return _elementType; } } #endregion #region Methods ////// Constructs the name of the collection type /// /// The entity type base that this ref type refers to ///The identity of the resulting ref type private static string GetIdentity(EntityTypeBase entityTypeBase) { StringBuilder builder = new StringBuilder(50); builder.Append("reference["); entityTypeBase.BuildIdentity(builder); builder.Append("]"); return builder.ToString(); } #endregion } } // 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
- StorageTypeMapping.cs
- FixedPageProcessor.cs
- WindowsUpDown.cs
- MonikerBuilder.cs
- SingleAnimation.cs
- SafeThemeHandle.cs
- XmlTypeAttribute.cs
- InstanceLockedException.cs
- ExtensionQuery.cs
- ResourceIDHelper.cs
- StorageMappingItemLoader.cs
- XmlIterators.cs
- SqlClientWrapperSmiStream.cs
- StorageTypeMapping.cs
- _Connection.cs
- Base64Stream.cs
- BuildProviderAppliesToAttribute.cs
- ContextInformation.cs
- ClosableStream.cs
- PointIndependentAnimationStorage.cs
- DecimalConverter.cs
- CursorConverter.cs
- ShimAsPublicXamlType.cs
- PhysicalFontFamily.cs
- _UriTypeConverter.cs
- StandardOleMarshalObject.cs
- VirtualizingPanel.cs
- COM2IDispatchConverter.cs
- NameScope.cs
- SubclassTypeValidatorAttribute.cs
- DataSourceControlBuilder.cs
- ContentPresenter.cs
- HttpClientChannel.cs
- MenuTracker.cs
- HttpVersion.cs
- CodeExpressionRuleDeclaration.cs
- formatter.cs
- FormCollection.cs
- StrokeCollection2.cs
- QilUnary.cs
- wgx_render.cs
- SqlGenerator.cs
- BoolExpressionVisitors.cs
- NonSerializedAttribute.cs
- AuthenticationSection.cs
- RubberbandSelector.cs
- SqlXml.cs
- ExpressionsCollectionConverter.cs
- NetCodeGroup.cs
- WebRequestModuleElement.cs
- SharedStatics.cs
- CapabilitiesPattern.cs
- Rect.cs
- _LazyAsyncResult.cs
- QilTernary.cs
- XmlSignificantWhitespace.cs
- ExpressionDumper.cs
- XPathAxisIterator.cs
- WebHeaderCollection.cs
- SecurityUniqueId.cs
- EventRouteFactory.cs
- InkSerializer.cs
- VirtualPathUtility.cs
- TextPointer.cs
- ReadOnlyActivityGlyph.cs
- StateMachine.cs
- NamespaceMapping.cs
- IssuedSecurityTokenParameters.cs
- TaskFileService.cs
- TemplateContentLoader.cs
- SchemaMapping.cs
- SQLUtility.cs
- TimeoutValidationAttribute.cs
- BamlTreeUpdater.cs
- ContentElementAutomationPeer.cs
- Funcletizer.cs
- DynamicScriptObject.cs
- GeneralTransformGroup.cs
- UnaryQueryOperator.cs
- JapaneseLunisolarCalendar.cs
- PageAdapter.cs
- XmlArrayItemAttribute.cs
- MessagePartProtectionMode.cs
- PersonalizationState.cs
- TraceSection.cs
- EncryptRequest.cs
- PointLightBase.cs
- EpmSourceTree.cs
- DockPanel.cs
- PropVariant.cs
- XmlDataSourceDesigner.cs
- PassportIdentity.cs
- FileUtil.cs
- TcpStreams.cs
- DbProviderFactories.cs
- BinaryWriter.cs
- CodeGenerator.cs
- DisplayInformation.cs
- ClientApiGenerator.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs