Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / RelationshipType.cs / 2 / 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
- GlyphRun.cs
- DocumentPage.cs
- PropertyEntry.cs
- ParagraphVisual.cs
- LabelDesigner.cs
- CheckoutException.cs
- ControlBuilderAttribute.cs
- DependencyPropertyChangedEventArgs.cs
- PkcsUtils.cs
- XmlSchemaSimpleContent.cs
- DataGridTextBox.cs
- InputLangChangeRequestEvent.cs
- SafeThreadHandle.cs
- InfiniteTimeSpanConverter.cs
- FunctionOverloadResolver.cs
- PackagingUtilities.cs
- BlockCollection.cs
- Column.cs
- TextWriterTraceListener.cs
- XPathSingletonIterator.cs
- FlowPosition.cs
- SafeBuffer.cs
- FilterException.cs
- Matrix3DValueSerializer.cs
- NamespaceQuery.cs
- X500Name.cs
- LocalizeDesigner.cs
- IPGlobalProperties.cs
- GrammarBuilderBase.cs
- MenuCommand.cs
- WebPartsSection.cs
- StringResourceManager.cs
- Wizard.cs
- HashStream.cs
- TextRunTypographyProperties.cs
- SqlNotificationRequest.cs
- HttpTransportElement.cs
- Keyboard.cs
- Win32.cs
- QilPatternFactory.cs
- BookmarkOptionsHelper.cs
- BezierSegment.cs
- DataSysAttribute.cs
- WorkflowInstance.cs
- TextViewBase.cs
- KnownTypesHelper.cs
- MetadataItemCollectionFactory.cs
- _ChunkParse.cs
- DotExpr.cs
- DataSourceXmlSubItemAttribute.cs
- TableLayoutRowStyleCollection.cs
- EpmTargetPathSegment.cs
- WebPartCollection.cs
- ProxyHwnd.cs
- AttachedAnnotationChangedEventArgs.cs
- TextEffect.cs
- WindowsGrip.cs
- NewArray.cs
- arclist.cs
- SpotLight.cs
- XhtmlMobileTextWriter.cs
- XmlFormatExtensionAttribute.cs
- DataPagerFieldCollection.cs
- SoapProtocolReflector.cs
- PreservationFileWriter.cs
- SchemaMerger.cs
- XNodeNavigator.cs
- CanonicalXml.cs
- ObjectListGeneralPage.cs
- TreeWalkHelper.cs
- BaseUriHelper.cs
- ChangeNode.cs
- KnownBoxes.cs
- ResXFileRef.cs
- EventProviderClassic.cs
- Baml6ConstructorInfo.cs
- _BasicClient.cs
- HTTPAPI_VERSION.cs
- SineEase.cs
- TableTextElementCollectionInternal.cs
- HttpHandlerAction.cs
- NavigationWindowAutomationPeer.cs
- DbMetaDataFactory.cs
- HtmlElementErrorEventArgs.cs
- ImageMapEventArgs.cs
- SessionStateUtil.cs
- Pool.cs
- CollectionChangeEventArgs.cs
- AstNode.cs
- CalendarModeChangedEventArgs.cs
- NativeActivityTransactionContext.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- StylusEditingBehavior.cs
- RSAProtectedConfigurationProvider.cs
- OutKeywords.cs
- DbModificationClause.cs
- XmlByteStreamReader.cs
- ResXFileRef.cs
- PEFileReader.cs
- PathFigureCollection.cs