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
- DnsPermission.cs
- DataGridViewBand.cs
- SqlNodeAnnotation.cs
- CompressionTransform.cs
- CryptoHandle.cs
- UniqueIdentifierService.cs
- X509Chain.cs
- DifferencingCollection.cs
- DataServiceRequest.cs
- DetailsViewModeEventArgs.cs
- ConfigurationErrorsException.cs
- Viewport3DVisual.cs
- DataObjectAttribute.cs
- InternalEnumValidator.cs
- ApplicationTrust.cs
- AssemblyHash.cs
- TextEditorLists.cs
- XmlDocument.cs
- SparseMemoryStream.cs
- PermissionListSet.cs
- RegistryConfigurationProvider.cs
- SqlGenerator.cs
- ByteFacetDescriptionElement.cs
- FileChangesMonitor.cs
- EventLogPermission.cs
- XmlSerializationWriter.cs
- DocumentsTrace.cs
- ExceptionDetail.cs
- RenderDataDrawingContext.cs
- ParserStreamGeometryContext.cs
- CaseInsensitiveComparer.cs
- ClientBuildManager.cs
- FlowDocumentReaderAutomationPeer.cs
- ResourceProperty.cs
- Underline.cs
- ISAPIApplicationHost.cs
- FreeFormDesigner.cs
- _OSSOCK.cs
- CompiledQuery.cs
- ObjectConverter.cs
- HtmlInputRadioButton.cs
- BaseTemplateBuildProvider.cs
- ThumbAutomationPeer.cs
- XmlUnspecifiedAttribute.cs
- SystemKeyConverter.cs
- PropertyManager.cs
- XmlSchemaExporter.cs
- TextEditorCharacters.cs
- ControlPropertyNameConverter.cs
- Pair.cs
- TableParaClient.cs
- SafeNativeMethods.cs
- TextContainerChangedEventArgs.cs
- ContainerFilterService.cs
- PrefixQName.cs
- DetectEofStream.cs
- HtmlMeta.cs
- PackWebRequestFactory.cs
- ISFClipboardData.cs
- CommandHelper.cs
- ButtonStandardAdapter.cs
- PermissionListSet.cs
- RequestSecurityTokenForRemoteTokenFactory.cs
- MediaSystem.cs
- CollectionExtensions.cs
- EntityCollection.cs
- FormViewInsertEventArgs.cs
- WindowAutomationPeer.cs
- IgnoreFileBuildProvider.cs
- ClientTargetCollection.cs
- SymbolPair.cs
- ImageFormat.cs
- ContentControl.cs
- WSHttpSecurityElement.cs
- SapiGrammar.cs
- Attribute.cs
- Model3DCollection.cs
- StringPropertyBuilder.cs
- Message.cs
- WebPartEditVerb.cs
- CqlQuery.cs
- XmlLinkedNode.cs
- WebResourceAttribute.cs
- ObjectDisposedException.cs
- Action.cs
- ErrorHandler.cs
- __Filters.cs
- SizeKeyFrameCollection.cs
- ToolBarPanel.cs
- RootBrowserWindow.cs
- handlecollector.cs
- WindowsAuthenticationModule.cs
- MemberDomainMap.cs
- WebEventCodes.cs
- SortDescription.cs
- DynamicActionMessageFilter.cs
- ToolStripItemCollection.cs
- HttpModuleAction.cs
- QuadraticBezierSegment.cs
- ExponentialEase.cs