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
- XmlDocumentType.cs
- XmlIterators.cs
- NetStream.cs
- AssociationEndMember.cs
- IisTraceWebEventProvider.cs
- WriteableBitmap.cs
- SQLByte.cs
- Hash.cs
- WebPartTracker.cs
- MarkupExtensionParser.cs
- ButtonColumn.cs
- EventHandlerService.cs
- NetworkInterface.cs
- XPSSignatureDefinition.cs
- HttpInputStream.cs
- FillBehavior.cs
- HashStream.cs
- ResourceExpressionBuilder.cs
- Latin1Encoding.cs
- controlskin.cs
- PropertyEmitter.cs
- DataGridViewColumnDesigner.cs
- PersonalizationProviderCollection.cs
- ExtractorMetadata.cs
- SafeNativeMethodsOther.cs
- GrammarBuilderBase.cs
- SecurityDocument.cs
- DesignerRegion.cs
- StateMachineSubscription.cs
- XmlSiteMapProvider.cs
- TextDecorationCollection.cs
- AdapterUtil.cs
- FactoryMaker.cs
- AssociationSet.cs
- LayoutUtils.cs
- LocalBuilder.cs
- CompiledQueryCacheKey.cs
- Maps.cs
- PerCallInstanceContextProvider.cs
- MenuAdapter.cs
- TreeChangeInfo.cs
- PathFigureCollection.cs
- XamlHostingSectionGroup.cs
- CFStream.cs
- DataError.cs
- DictionaryBase.cs
- SqlNodeTypeOperators.cs
- metadatamappinghashervisitor.cs
- SafeIUnknown.cs
- EditorOptionAttribute.cs
- XmlMemberMapping.cs
- CssClassPropertyAttribute.cs
- MouseDevice.cs
- ClientApiGenerator.cs
- IPCCacheManager.cs
- MsmqIntegrationElement.cs
- EntityTemplateUserControl.cs
- _NegoState.cs
- DesignerSerializationManager.cs
- GridViewCommandEventArgs.cs
- ExtendedProperty.cs
- BitmapVisualManager.cs
- TypeConverterValueSerializer.cs
- PropertyRef.cs
- ActiveDocumentEvent.cs
- DataColumn.cs
- ExpandSegment.cs
- XmlSchemaInclude.cs
- DecoderFallback.cs
- DbRetry.cs
- BinaryNegotiation.cs
- TransformerTypeCollection.cs
- ToolStripContainer.cs
- WebServicesDescriptionAttribute.cs
- IDispatchConstantAttribute.cs
- FixedSOMGroup.cs
- IconConverter.cs
- GridViewUpdateEventArgs.cs
- SchemaImporterExtensionElement.cs
- Storyboard.cs
- DnsPermission.cs
- ConfigXmlCDataSection.cs
- SweepDirectionValidation.cs
- InvalidChannelBindingException.cs
- CustomExpressionEventArgs.cs
- Axis.cs
- MethodBuilderInstantiation.cs
- CodeGenerator.cs
- SmuggledIUnknown.cs
- DesignerObject.cs
- RtfFormatStack.cs
- DesignBindingPropertyDescriptor.cs
- ControlBindingsConverter.cs
- WebScriptMetadataMessageEncoderFactory.cs
- XamlStyleSerializer.cs
- WebPartEventArgs.cs
- MsmqInputSessionChannel.cs
- BuilderPropertyEntry.cs
- SqlDataSourceEnumerator.cs
- StatusBarItemAutomationPeer.cs