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
- DataGridViewCellParsingEventArgs.cs
- RayMeshGeometry3DHitTestResult.cs
- SecureStringHasher.cs
- DbParameterCollection.cs
- DynamicMethod.cs
- TraceInternal.cs
- PagerSettings.cs
- XmlMemberMapping.cs
- DataGridRow.cs
- _WinHttpWebProxyDataBuilder.cs
- CheckBox.cs
- MDIWindowDialog.cs
- RuntimeEnvironment.cs
- TextEvent.cs
- TextControlDesigner.cs
- SapiRecognizer.cs
- ToolStripItemCollection.cs
- PixelFormat.cs
- Label.cs
- StylusDownEventArgs.cs
- MDIWindowDialog.cs
- BulletedList.cs
- XPSSignatureDefinition.cs
- AddInBase.cs
- SspiWrapper.cs
- ChannelBinding.cs
- QueryReaderSettings.cs
- WindowsTitleBar.cs
- CopyNamespacesAction.cs
- storepermissionattribute.cs
- ReadOnlyNameValueCollection.cs
- TreeIterators.cs
- ShaderEffect.cs
- CqlIdentifiers.cs
- ComponentResourceKey.cs
- ImageAttributes.cs
- TypeUsage.cs
- ConstantSlot.cs
- GridItemProviderWrapper.cs
- ReaderContextStackData.cs
- GeometryHitTestParameters.cs
- KnownTypes.cs
- Win32SafeHandles.cs
- ProcessHostFactoryHelper.cs
- TargetFrameworkUtil.cs
- Verify.cs
- TTSEngineProxy.cs
- TextCharacters.cs
- DesignTableCollection.cs
- EventLogPermissionEntry.cs
- Font.cs
- ChannelPoolSettingsElement.cs
- DataRelationPropertyDescriptor.cs
- BitmapEffectInputData.cs
- SoapElementAttribute.cs
- FillBehavior.cs
- ControlBuilderAttribute.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- DesigntimeLicenseContextSerializer.cs
- EncodingInfo.cs
- FragmentQueryKB.cs
- CodeCatchClause.cs
- EventlogProvider.cs
- StrokeSerializer.cs
- DefaultEventAttribute.cs
- XmlSchemaValidator.cs
- PerformanceCounterLib.cs
- EndpointDesigner.cs
- SourceSwitch.cs
- EntryIndex.cs
- PolicyUnit.cs
- CounterSample.cs
- DescendantOverDescendantQuery.cs
- ExitEventArgs.cs
- ContextProperty.cs
- AsymmetricAlgorithm.cs
- LayoutEvent.cs
- OpCopier.cs
- MultiPageTextView.cs
- DoubleCollection.cs
- SqlConnectionHelper.cs
- CompiledAction.cs
- TableLayoutPanelCodeDomSerializer.cs
- ClientProxyGenerator.cs
- ProfileGroupSettings.cs
- DateTimeConverter.cs
- RegionIterator.cs
- SafeBuffer.cs
- BehaviorEditorPart.cs
- AlgoModule.cs
- MouseButtonEventArgs.cs
- RSAPKCS1SignatureFormatter.cs
- BeginEvent.cs
- Int64Converter.cs
- EntityDataSourceReferenceGroup.cs
- SimpleType.cs
- QuadraticBezierSegment.cs
- XsltInput.cs
- AssemblyAssociatedContentFileAttribute.cs
- TransformPattern.cs