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
- ColorTypeConverter.cs
- SqlGenericUtil.cs
- PropertyExpression.cs
- FileUtil.cs
- Misc.cs
- FixedSOMTableRow.cs
- WsrmTraceRecord.cs
- SelectorItemAutomationPeer.cs
- CompositeFontParser.cs
- AnonymousIdentificationModule.cs
- TextParagraphCache.cs
- messageonlyhwndwrapper.cs
- CodeGen.cs
- LocalValueEnumerator.cs
- XmlSchemaNotation.cs
- DataGridViewLinkColumn.cs
- ScrollChrome.cs
- ResourceProviderFactory.cs
- WS2007FederationHttpBindingElement.cs
- DataGridViewHeaderCell.cs
- ProcessModule.cs
- KnownIds.cs
- DataServiceException.cs
- ToolStripComboBox.cs
- ColumnCollectionEditor.cs
- EditorZoneBase.cs
- MonthChangedEventArgs.cs
- XmlSchemaDocumentation.cs
- Guid.cs
- HtmlTableRow.cs
- Directory.cs
- ItemCheckEvent.cs
- CredentialCache.cs
- LabelLiteral.cs
- CodeTypeParameterCollection.cs
- ReadOnlyDictionary.cs
- MDIControlStrip.cs
- EventData.cs
- ErrorHandlingReceiver.cs
- ConfigPathUtility.cs
- ColorConvertedBitmap.cs
- ParseChildrenAsPropertiesAttribute.cs
- ScheduleChanges.cs
- BoolExpressionVisitors.cs
- DependencyPropertyConverter.cs
- NodeLabelEditEvent.cs
- ExtentJoinTreeNode.cs
- IssuanceLicense.cs
- CollectionContainer.cs
- Relationship.cs
- ToolStripControlHost.cs
- RowCache.cs
- CheckBox.cs
- InstanceKeyCollisionException.cs
- ToolStripDesignerAvailabilityAttribute.cs
- PersonalizationState.cs
- Rectangle.cs
- DrawListViewColumnHeaderEventArgs.cs
- EventBuilder.cs
- DataSourceNameHandler.cs
- Identifier.cs
- DataColumnCollection.cs
- SortedDictionary.cs
- ControlValuePropertyAttribute.cs
- EntityViewContainer.cs
- Identity.cs
- DaylightTime.cs
- SecurityRuntime.cs
- SqlHelper.cs
- Camera.cs
- LZCodec.cs
- PropertyDescriptor.cs
- CheckBoxRenderer.cs
- FlowLayout.cs
- CurrentChangedEventManager.cs
- BitmapScalingModeValidation.cs
- CssTextWriter.cs
- ReflectionUtil.cs
- ImplicitInputBrush.cs
- SizeAnimationBase.cs
- Control.cs
- OleDbConnection.cs
- DataGridRelationshipRow.cs
- ScopeCollection.cs
- MSAAWinEventWrap.cs
- RealProxy.cs
- fixedPageContentExtractor.cs
- TargetControlTypeCache.cs
- ImplicitInputBrush.cs
- ExpandableObjectConverter.cs
- EntitySqlQueryState.cs
- UrlSyndicationContent.cs
- DataGridColumnDropSeparator.cs
- cache.cs
- DbTransaction.cs
- OverrideMode.cs
- SponsorHelper.cs
- ExtensionSurface.cs
- XmlProcessingInstruction.cs
- NullRuntimeConfig.cs