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
- WorkItem.cs
- AsyncPostBackErrorEventArgs.cs
- arabicshape.cs
- Module.cs
- WindowExtensionMethods.cs
- FileUtil.cs
- ElementProxy.cs
- ControllableStoryboardAction.cs
- MouseDevice.cs
- RuleSetCollection.cs
- COM2PictureConverter.cs
- ProcessHost.cs
- HandlerWithFactory.cs
- WebPartDisplayModeCollection.cs
- EventLogRecord.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- CodeAccessPermission.cs
- EndPoint.cs
- WpfXamlLoader.cs
- SystemFonts.cs
- LinkArea.cs
- CopyNamespacesAction.cs
- DateTimeValueSerializer.cs
- PowerStatus.cs
- SpecialFolderEnumConverter.cs
- MTConfigUtil.cs
- ThemeInfoAttribute.cs
- ObjectDataSourceMethodEditor.cs
- EventEntry.cs
- JavaScriptString.cs
- WebEventCodes.cs
- mediaclock.cs
- FilterableAttribute.cs
- PropertyTab.cs
- ProjectionCamera.cs
- ExpressionPrefixAttribute.cs
- ThreadExceptionDialog.cs
- versioninfo.cs
- MarginCollapsingState.cs
- DataServiceQueryProvider.cs
- TraceContext.cs
- EntityTypeBase.cs
- RequestUriProcessor.cs
- GridViewColumnCollection.cs
- TypeExtensionConverter.cs
- DataGridViewColumnEventArgs.cs
- SiteMapNodeItemEventArgs.cs
- SqlTriggerAttribute.cs
- ColorConvertedBitmapExtension.cs
- XmlSchemaSimpleContent.cs
- VisualBasicDesignerHelper.cs
- HtmlSelect.cs
- webclient.cs
- InputBinding.cs
- InvokeBinder.cs
- VBIdentifierTrimConverter.cs
- EventWaitHandle.cs
- ErrorView.xaml.cs
- WebBrowserContainer.cs
- CompositeScriptReference.cs
- XsltQilFactory.cs
- CancellationHandler.cs
- MobileControlBuilder.cs
- ConfigXmlSignificantWhitespace.cs
- Positioning.cs
- WebPartManagerDesigner.cs
- InkCanvasFeedbackAdorner.cs
- SynchronizedDispatch.cs
- AnnotationDocumentPaginator.cs
- MasterPage.cs
- ComAdminWrapper.cs
- SHA1.cs
- TextWriter.cs
- EntityProxyFactory.cs
- CustomErrorCollection.cs
- UdpUtility.cs
- FontDialog.cs
- XPathDocumentNavigator.cs
- Converter.cs
- CookieHandler.cs
- ArglessEventHandlerProxy.cs
- DataObject.cs
- SqlDataSourceCache.cs
- ServiceDiscoveryElement.cs
- HttpProtocolImporter.cs
- CatalogPartCollection.cs
- DBSqlParserTableCollection.cs
- PipelineModuleStepContainer.cs
- RootBrowserWindow.cs
- ClientUrlResolverWrapper.cs
- InvalidOleVariantTypeException.cs
- Misc.cs
- CodeMethodInvokeExpression.cs
- TransformConverter.cs
- LogConverter.cs
- SqlComparer.cs
- BrowserCapabilitiesFactory.cs
- InputLanguageCollection.cs
- X509ServiceCertificateAuthenticationElement.cs
- FilteredReadOnlyMetadataCollection.cs