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
- ObjectDataSourceMethodEventArgs.cs
- XhtmlBasicListAdapter.cs
- Int32Converter.cs
- ToolStripItemCollection.cs
- KeyValueConfigurationCollection.cs
- SqlBuffer.cs
- MethodResolver.cs
- SerializableAttribute.cs
- SocketAddress.cs
- TagElement.cs
- ParsedAttributeCollection.cs
- MarshalDirectiveException.cs
- BitmapData.cs
- _ProxyRegBlob.cs
- ChangePassword.cs
- CodeCommentStatement.cs
- ChildChangedEventArgs.cs
- ScrollProviderWrapper.cs
- ProgramPublisher.cs
- CachedFontFamily.cs
- MonthCalendar.cs
- ResourceDescriptionAttribute.cs
- ScrollableControl.cs
- GPRECTF.cs
- SemanticResolver.cs
- dbenumerator.cs
- NamespaceEmitter.cs
- ReferenceTypeElement.cs
- HierarchicalDataSourceControl.cs
- ObjectView.cs
- EventHandlers.cs
- Attachment.cs
- SortKey.cs
- SoapEnumAttribute.cs
- TrustManagerPromptUI.cs
- TextEditorTables.cs
- ProtocolElementCollection.cs
- TextLineBreak.cs
- RequestNavigateEventArgs.cs
- XMLSyntaxException.cs
- AddInAttribute.cs
- SQLInt16.cs
- EFDataModelProvider.cs
- RootBrowserWindowAutomationPeer.cs
- XmlDataDocument.cs
- TimeSpanValidator.cs
- BypassElement.cs
- _SslSessionsCache.cs
- ParagraphVisual.cs
- TextDecorationCollection.cs
- RuntimeUtils.cs
- FieldMetadata.cs
- GACMembershipCondition.cs
- WebUtil.cs
- AspCompat.cs
- SolidColorBrush.cs
- ItemList.cs
- CellLabel.cs
- DispatcherObject.cs
- GridView.cs
- UserValidatedEventArgs.cs
- NotSupportedException.cs
- SourceElementsCollection.cs
- AndAlso.cs
- ExeConfigurationFileMap.cs
- ScaleTransform3D.cs
- FastPropertyAccessor.cs
- ReceiveContent.cs
- PassportPrincipal.cs
- Events.cs
- Item.cs
- DataTable.cs
- CheckBoxPopupAdapter.cs
- InputScopeConverter.cs
- TraversalRequest.cs
- AssemblySettingAttributes.cs
- _CookieModule.cs
- Visual3D.cs
- GradientStop.cs
- Italic.cs
- CroppedBitmap.cs
- ReferenceEqualityComparer.cs
- BitSet.cs
- XPathSelectionIterator.cs
- LoadWorkflowAsyncResult.cs
- ByteAnimation.cs
- BulletDecorator.cs
- PassportIdentity.cs
- XmlConvert.cs
- SchemaCollectionPreprocessor.cs
- StylusPointPropertyInfoDefaults.cs
- PageBreakRecord.cs
- DecoratedNameAttribute.cs
- ComplexObject.cs
- TextElement.cs
- XmlComment.cs
- StreamUpdate.cs
- _IPv4Address.cs
- EventLogPermissionAttribute.cs
- DesignerInterfaces.cs