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
- EdmConstants.cs
- PreviewPageInfo.cs
- WSUtilitySpecificationVersion.cs
- BitHelper.cs
- JumpList.cs
- XmlNodeList.cs
- WebBrowserNavigatedEventHandler.cs
- CodeRemoveEventStatement.cs
- DocumentPageTextView.cs
- TextDecorationCollectionConverter.cs
- ZoneMembershipCondition.cs
- UnionCodeGroup.cs
- IIS7UserPrincipal.cs
- UnknownBitmapEncoder.cs
- ServicePoint.cs
- ControlBindingsCollection.cs
- BreadCrumbTextConverter.cs
- AggregateNode.cs
- FormView.cs
- PackageRelationshipCollection.cs
- SecurityTokenTypes.cs
- XPathNodeIterator.cs
- ReferencedAssemblyResolver.cs
- SendDesigner.xaml.cs
- RefType.cs
- ETagAttribute.cs
- SubpageParaClient.cs
- Delegate.cs
- ApplyTemplatesAction.cs
- ApplicationId.cs
- AnnotationStore.cs
- CodePageEncoding.cs
- GenericTypeParameterBuilder.cs
- QueryCoreOp.cs
- KeyInstance.cs
- UserControlBuildProvider.cs
- UpdatePanelControlTrigger.cs
- InvalidateEvent.cs
- DataListItemCollection.cs
- HtmlTitle.cs
- SqlIdentifier.cs
- DateTime.cs
- XmlCountingReader.cs
- InstanceDataCollection.cs
- WebBrowserProgressChangedEventHandler.cs
- SQLInt16Storage.cs
- InlineCollection.cs
- StringInfo.cs
- Vector3DCollection.cs
- RowUpdatedEventArgs.cs
- KnownBoxes.cs
- SettingsProperty.cs
- CustomCredentialPolicy.cs
- Faults.cs
- PrimaryKeyTypeConverter.cs
- XmlChildNodes.cs
- X509ServiceCertificateAuthenticationElement.cs
- RuleSettings.cs
- XmlUtf8RawTextWriter.cs
- ValidatingReaderNodeData.cs
- ItemsChangedEventArgs.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- DesignerEditorPartChrome.cs
- NGCSerializationManagerAsync.cs
- RadioButtonList.cs
- WindowsAuthenticationModule.cs
- HostedElements.cs
- _SpnDictionary.cs
- FontCacheUtil.cs
- DefaultParameterValueAttribute.cs
- SchemaEntity.cs
- Propagator.ExtentPlaceholderCreator.cs
- Logging.cs
- TextDecoration.cs
- GeneratedCodeAttribute.cs
- dataobject.cs
- EdmConstants.cs
- SplitterPanel.cs
- IDispatchConstantAttribute.cs
- Misc.cs
- SmtpCommands.cs
- TrustManager.cs
- Choices.cs
- RemoveFromCollection.cs
- LinqDataSourceInsertEventArgs.cs
- TransactionInterop.cs
- FloatMinMaxAggregationOperator.cs
- Int16Animation.cs
- HttpChannelHelper.cs
- RoleManagerEventArgs.cs
- WebRequestModulesSection.cs
- ExceptionUtil.cs
- HttpValueCollection.cs
- LocalizationParserHooks.cs
- GeneralTransform3DCollection.cs
- SmiTypedGetterSetter.cs
- DataGridViewRowCollection.cs
- ManagementDateTime.cs
- StyleXamlParser.cs
- CodePageUtils.cs