Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / RelationshipType.cs / 1 / RelationshipType.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....], [....] //--------------------------------------------------------------------- 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 [....], [....] //--------------------------------------------------------------------- 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
- OptimisticConcurrencyException.cs
- CounterSample.cs
- PropertyItem.cs
- UIElementAutomationPeer.cs
- MemoryStream.cs
- GridProviderWrapper.cs
- HttpFileCollectionWrapper.cs
- TabRenderer.cs
- CryptoHelper.cs
- InvalidAsynchronousStateException.cs
- FlowLayoutPanel.cs
- ContractCodeDomInfo.cs
- ParameterRetriever.cs
- DataObjectEventArgs.cs
- PseudoWebRequest.cs
- VBCodeProvider.cs
- Int64Storage.cs
- TagNameToTypeMapper.cs
- Block.cs
- XmlSchemaException.cs
- SystemPens.cs
- TreeChangeInfo.cs
- PerSessionInstanceContextProvider.cs
- Win32.cs
- TextParagraphCache.cs
- GroupQuery.cs
- EventListener.cs
- XhtmlBasicListAdapter.cs
- ScrollableControl.cs
- GeometryGroup.cs
- DataTablePropertyDescriptor.cs
- SizeAnimationUsingKeyFrames.cs
- TextBounds.cs
- HostingPreferredMapPath.cs
- Size.cs
- SplayTreeNode.cs
- TemplateControl.cs
- XmlNodeList.cs
- ConfigurationElement.cs
- DesignerRegion.cs
- PhysicalAddress.cs
- ResourceCategoryAttribute.cs
- FormsAuthenticationUserCollection.cs
- Win32SafeHandles.cs
- ToolStripMenuItem.cs
- ObjectHelper.cs
- WebPartConnectionsEventArgs.cs
- HMACRIPEMD160.cs
- ComAdminInterfaces.cs
- TreeSet.cs
- ProfilePropertySettingsCollection.cs
- PerformanceCountersElement.cs
- OutputWindow.cs
- ImageSource.cs
- Internal.cs
- ExpressionVisitor.cs
- VerificationException.cs
- PasswordTextContainer.cs
- ProfileManager.cs
- processwaithandle.cs
- SqlBuffer.cs
- XmlSchemaComplexContentExtension.cs
- WebContentFormatHelper.cs
- UserControlBuildProvider.cs
- DetailsViewModeEventArgs.cs
- SystemIcons.cs
- EntitySqlException.cs
- JsonReader.cs
- TreeViewHitTestInfo.cs
- XmlCharCheckingWriter.cs
- TriggerCollection.cs
- XhtmlBasicObjectListAdapter.cs
- PseudoWebRequest.cs
- MetaColumn.cs
- X509ScopedServiceCertificateElementCollection.cs
- DllNotFoundException.cs
- SqlWorkflowPersistenceService.cs
- DbParameterCollectionHelper.cs
- DeflateEmulationStream.cs
- DesignerAutoFormatCollection.cs
- AlphabeticalEnumConverter.cs
- Stylesheet.cs
- DESCryptoServiceProvider.cs
- ArrayExtension.cs
- Vector3dCollection.cs
- SmtpReplyReader.cs
- XmlDictionaryWriter.cs
- KeyToListMap.cs
- Trace.cs
- WindowsBrush.cs
- Helpers.cs
- MultiAsyncResult.cs
- WebExceptionStatus.cs
- DataSourceControl.cs
- RequestDescription.cs
- XmlNodeReader.cs
- ScriptServiceAttribute.cs
- arc.cs
- PrePrepareMethodAttribute.cs
- KeyBinding.cs