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
- LogicalTreeHelper.cs
- Int32KeyFrameCollection.cs
- HtmlValidatorAdapter.cs
- RemoteWebConfigurationHostStream.cs
- EpmSyndicationContentDeSerializer.cs
- DisplayInformation.cs
- TextControl.cs
- DbMetaDataColumnNames.cs
- Events.cs
- GroupBox.cs
- LicenseException.cs
- DataObjectSettingDataEventArgs.cs
- DataExpression.cs
- ServiceHostingEnvironment.cs
- Journal.cs
- ProcessHostFactoryHelper.cs
- DataSourceGroupCollection.cs
- CursorConverter.cs
- ColorTranslator.cs
- MetadataSource.cs
- XXXOnTypeBuilderInstantiation.cs
- GeneratedCodeAttribute.cs
- WSFederationHttpBindingElement.cs
- __Filters.cs
- TemplatedWizardStep.cs
- RetrieveVirtualItemEventArgs.cs
- NumberFormatInfo.cs
- MeshGeometry3D.cs
- CustomAttribute.cs
- TextSelectionProcessor.cs
- AccessDataSource.cs
- PropertyEmitterBase.cs
- InvocationExpression.cs
- RouteValueDictionary.cs
- DBSchemaRow.cs
- DateTimeParse.cs
- EventLevel.cs
- EventHandlersStore.cs
- TabControlCancelEvent.cs
- RegisteredDisposeScript.cs
- ManipulationDeltaEventArgs.cs
- String.cs
- BasePattern.cs
- ProgressBar.cs
- MessageAction.cs
- SHA1Managed.cs
- VisualTreeHelper.cs
- RuleSettings.cs
- ContractMapping.cs
- ActivityInfo.cs
- HostDesigntimeLicenseContext.cs
- XamlGridLengthSerializer.cs
- XPathNavigator.cs
- SoapAttributeAttribute.cs
- MouseGestureValueSerializer.cs
- HtmlEncodedRawTextWriter.cs
- SqlProviderManifest.cs
- SamlAuthorityBinding.cs
- InputEventArgs.cs
- TogglePattern.cs
- UnmanagedMemoryStream.cs
- AuthorizationSection.cs
- StylusPoint.cs
- TextControl.cs
- ContentElement.cs
- ToolStripControlHost.cs
- Command.cs
- HttpCapabilitiesBase.cs
- ExpressionLexer.cs
- RequestTimeoutManager.cs
- PathFigure.cs
- ListBindingHelper.cs
- RuleSettingsCollection.cs
- TraceInternal.cs
- TranslateTransform3D.cs
- DataGridViewLayoutData.cs
- SymbolMethod.cs
- ToolStripDesignerUtils.cs
- UMPAttributes.cs
- CustomErrorCollection.cs
- TransactionInterop.cs
- TemplateEditingVerb.cs
- NetworkInformationPermission.cs
- RemotingException.cs
- ReflectEventDescriptor.cs
- ListChangedEventArgs.cs
- NativeMethods.cs
- SoapWriter.cs
- SystemWebSectionGroup.cs
- BamlMapTable.cs
- InvalidCommandTreeException.cs
- CanonicalFormWriter.cs
- VirtualPathUtility.cs
- WebSysDescriptionAttribute.cs
- DataTableTypeConverter.cs
- HitTestParameters3D.cs
- TableAdapterManagerGenerator.cs
- EntityDataReader.cs
- QueryOutputWriter.cs
- HybridObjectCache.cs