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
- TraceListeners.cs
- XmlBufferedByteStreamReader.cs
- PropertyPushdownHelper.cs
- QilList.cs
- Propagator.cs
- WhitespaceRuleLookup.cs
- StorageMappingItemCollection.cs
- PnrpPermission.cs
- DataGridViewCellMouseEventArgs.cs
- QilUnary.cs
- StylusButtonEventArgs.cs
- _FixedSizeReader.cs
- PenContexts.cs
- OutputWindow.cs
- IdentityNotMappedException.cs
- CatalogPart.cs
- PerspectiveCamera.cs
- ToolStripDropDownClosedEventArgs.cs
- RSAPKCS1SignatureFormatter.cs
- TextTrailingCharacterEllipsis.cs
- PanelDesigner.cs
- XmlSignificantWhitespace.cs
- Line.cs
- DocumentXPathNavigator.cs
- PeerCustomResolverBindingElement.cs
- SmtpReplyReaderFactory.cs
- QueryResponse.cs
- XmlSchemaDocumentation.cs
- SqlServer2KCompatibilityCheck.cs
- ObjectHandle.cs
- DataGridRowHeader.cs
- OleDbConnectionInternal.cs
- IListConverters.cs
- SoapException.cs
- SharingService.cs
- LogAppendAsyncResult.cs
- PropertyIDSet.cs
- UniformGrid.cs
- DrawListViewItemEventArgs.cs
- SortQueryOperator.cs
- RotateTransform.cs
- DataRelationCollection.cs
- CannotUnloadAppDomainException.cs
- SkipStoryboardToFill.cs
- And.cs
- ForeignKeyConstraint.cs
- CoTaskMemHandle.cs
- IntSecurity.cs
- ResXDataNode.cs
- KeyMatchBuilder.cs
- CustomTypeDescriptor.cs
- Constraint.cs
- PrintEvent.cs
- CustomLineCap.cs
- WmpBitmapEncoder.cs
- ReadingWritingEntityEventArgs.cs
- KnownBoxes.cs
- wgx_commands.cs
- COM2AboutBoxPropertyDescriptor.cs
- ThreadAbortException.cs
- autovalidator.cs
- XmlMemberMapping.cs
- VoiceChangeEventArgs.cs
- _Rfc2616CacheValidators.cs
- ThrowHelper.cs
- SafePointer.cs
- OleDbTransaction.cs
- XmlDocumentSurrogate.cs
- XmlKeywords.cs
- DataMisalignedException.cs
- AuthorizationContext.cs
- TextPenaltyModule.cs
- DataPointer.cs
- DataGridViewColumnHeaderCell.cs
- SplitterPanel.cs
- VBCodeProvider.cs
- TextCompositionManager.cs
- ADMembershipUser.cs
- HtmlObjectListAdapter.cs
- DataGridViewComboBoxColumn.cs
- ResetableIterator.cs
- OdbcError.cs
- QilUnary.cs
- SplineQuaternionKeyFrame.cs
- MILUtilities.cs
- BaseValidatorDesigner.cs
- SetIterators.cs
- ZoneLinkButton.cs
- ResourceSetExpression.cs
- remotingproxy.cs
- PersonalizationProvider.cs
- EnumerableRowCollectionExtensions.cs
- QualificationDataAttribute.cs
- DbMetaDataFactory.cs
- OleDbError.cs
- VBIdentifierTrimConverter.cs
- SmiContext.cs
- StructuralObject.cs
- HelpFileFileNameEditor.cs
- EtwTrace.cs