Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / RelationshipType.cs / 1305376 / RelationshipType.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using System.Threading; namespace System.Data.Metadata.Edm { ////// Represents the Relationship type /// public abstract class RelationshipType : EntityTypeBase { private ReadOnlyMetadataCollection_relationshipEndMembers; #region Constructors /// /// Initializes a new instance of relationship type /// /// name of the relationship type /// namespace of the relationship type /// version of the relationship type /// dataSpace in which this edmtype belongs to ///Thrown if either name, namespace or version arguments are null internal RelationshipType(string name, string namespaceName, DataSpace dataSpace) : base(name, namespaceName, dataSpace) { } #endregion #region Properties ////// Returns the list of ends for this relationship type /// public ReadOnlyMetadataCollectionRelationshipEndMembers { get { Debug.Assert(IsReadOnly, "this is a wrapper around this.Members, don't call it during metadata loading, only call it after the metadata is set to readonly"); if (null == _relationshipEndMembers) { FilteredReadOnlyMetadataCollection relationshipEndMembers = new FilteredReadOnlyMetadataCollection ( this.Members, Helper.IsRelationshipEndMember); Interlocked.CompareExchange(ref _relationshipEndMembers, relationshipEndMembers, null); } return _relationshipEndMembers; } } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using System.Threading; namespace System.Data.Metadata.Edm { ////// Represents the Relationship type /// public abstract class RelationshipType : EntityTypeBase { private ReadOnlyMetadataCollection_relationshipEndMembers; #region Constructors /// /// Initializes a new instance of relationship type /// /// name of the relationship type /// namespace of the relationship type /// version of the relationship type /// dataSpace in which this edmtype belongs to ///Thrown if either name, namespace or version arguments are null internal RelationshipType(string name, string namespaceName, DataSpace dataSpace) : base(name, namespaceName, dataSpace) { } #endregion #region Properties ////// Returns the list of ends for this relationship type /// public ReadOnlyMetadataCollectionRelationshipEndMembers { get { Debug.Assert(IsReadOnly, "this is a wrapper around this.Members, don't call it during metadata loading, only call it after the metadata is set to readonly"); if (null == _relationshipEndMembers) { FilteredReadOnlyMetadataCollection relationshipEndMembers = new FilteredReadOnlyMetadataCollection ( this.Members, Helper.IsRelationshipEndMember); Interlocked.CompareExchange(ref _relationshipEndMembers, relationshipEndMembers, null); } return _relationshipEndMembers; } } #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
- userdatakeys.cs
- SchemaAttDef.cs
- NavigationProgressEventArgs.cs
- ChildChangedEventArgs.cs
- SettingsBase.cs
- RegistryPermission.cs
- DrawingServices.cs
- DataGridCellItemAutomationPeer.cs
- DbReferenceCollection.cs
- ValidationEventArgs.cs
- CodeMemberEvent.cs
- InvalidDataContractException.cs
- Math.cs
- FixUp.cs
- XmlUtf8RawTextWriter.cs
- PerspectiveCamera.cs
- Baml2006SchemaContext.cs
- SqlCacheDependencySection.cs
- WebPartTransformerCollection.cs
- DbConnectionClosed.cs
- autovalidator.cs
- RadioButtonList.cs
- RequiredAttributeAttribute.cs
- WebServiceBindingAttribute.cs
- WindowsListViewItemStartMenu.cs
- WpfPayload.cs
- ServiceOperation.cs
- UnsafeNetInfoNativeMethods.cs
- ICspAsymmetricAlgorithm.cs
- DocumentScope.cs
- SectionInformation.cs
- SQLSingleStorage.cs
- GridViewRowPresenter.cs
- RoleManagerModule.cs
- EditorZoneAutoFormat.cs
- StringFreezingAttribute.cs
- HashSet.cs
- RouteValueDictionary.cs
- FacetValueContainer.cs
- GlobalEventManager.cs
- DecoderBestFitFallback.cs
- GlyphCache.cs
- SqlUdtInfo.cs
- EntityFrameworkVersions.cs
- ContentAlignmentEditor.cs
- XmlSchemaType.cs
- InternalPermissions.cs
- ArrayItemReference.cs
- __Filters.cs
- IList.cs
- JavaScriptSerializer.cs
- EmissiveMaterial.cs
- DateTimeUtil.cs
- DesignerDataColumn.cs
- EventRouteFactory.cs
- datacache.cs
- DesignerCategoryAttribute.cs
- ContainerFilterService.cs
- Win32NamedPipes.cs
- BehaviorEditorPart.cs
- GifBitmapEncoder.cs
- AsymmetricSignatureFormatter.cs
- DataGridViewTopLeftHeaderCell.cs
- ToolStripDropDownClosingEventArgs.cs
- QuaternionValueSerializer.cs
- BinHexEncoder.cs
- RotationValidation.cs
- RoleGroupCollection.cs
- PropertiesTab.cs
- RegexStringValidatorAttribute.cs
- Emitter.cs
- CommandLineParser.cs
- DocumentCollection.cs
- TraceHandlerErrorFormatter.cs
- AppDomain.cs
- Events.cs
- FormsAuthentication.cs
- ClientUrlResolverWrapper.cs
- CompoundFileStreamReference.cs
- Parameter.cs
- CounterSample.cs
- XmlAttributeProperties.cs
- ContentHostHelper.cs
- ApplicationBuildProvider.cs
- ArrayElementGridEntry.cs
- EventLogTraceListener.cs
- HtmlImageAdapter.cs
- UnsafeNativeMethods.cs
- SystemIPInterfaceStatistics.cs
- DetectEofStream.cs
- ScriptDescriptor.cs
- EmptyCollection.cs
- TextCompositionManager.cs
- ConfigurationProperty.cs
- SmtpSection.cs
- ConnectionManagementSection.cs
- DataDocumentXPathNavigator.cs
- BuildResultCache.cs
- PageRanges.cs
- ToolStripPanelRenderEventArgs.cs