Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / RelationshipType.cs / 3 / 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
- PolyQuadraticBezierSegment.cs
- XamlPoint3DCollectionSerializer.cs
- GeometryHitTestResult.cs
- ISCIIEncoding.cs
- ApplyImportsAction.cs
- BreadCrumbTextConverter.cs
- Application.cs
- DataTableExtensions.cs
- FileUtil.cs
- PageVisual.cs
- GorillaCodec.cs
- FrameAutomationPeer.cs
- UxThemeWrapper.cs
- SyndicationSerializer.cs
- DocumentOrderComparer.cs
- LinkedList.cs
- PropertyItemInternal.cs
- WebCategoryAttribute.cs
- PeekCompletedEventArgs.cs
- DocumentsTrace.cs
- TypographyProperties.cs
- AccessViolationException.cs
- BindableAttribute.cs
- SignedXml.cs
- CodeDOMUtility.cs
- ApplyTemplatesAction.cs
- DynamicHyperLink.cs
- HwndSourceParameters.cs
- SystemParameters.cs
- TextBoxBaseDesigner.cs
- CollectionViewGroupInternal.cs
- WebUtil.cs
- ParenthesizePropertyNameAttribute.cs
- VisualTarget.cs
- ColorConverter.cs
- PropertyIDSet.cs
- TextOutput.cs
- ArraySegment.cs
- MetabaseSettingsIis7.cs
- PropertyChangedEventManager.cs
- ResourceManagerWrapper.cs
- MessageQueue.cs
- HtmlTitle.cs
- Typeface.cs
- ProfileSection.cs
- CellPartitioner.cs
- ColumnMapVisitor.cs
- DataServiceHost.cs
- _Rfc2616CacheValidators.cs
- CodeSubDirectory.cs
- LineServicesRun.cs
- ScriptManagerProxy.cs
- BypassElementCollection.cs
- ThicknessAnimationUsingKeyFrames.cs
- ScriptReferenceEventArgs.cs
- XmlSchemaComplexContentExtension.cs
- ListBoxItem.cs
- SocketException.cs
- CssClassPropertyAttribute.cs
- DetailsView.cs
- FontDifferentiator.cs
- HttpBindingExtension.cs
- Calendar.cs
- AppSettingsSection.cs
- CryptoStream.cs
- SerializableAttribute.cs
- COM2ComponentEditor.cs
- StorageComplexPropertyMapping.cs
- WizardPanelChangingEventArgs.cs
- InstanceContext.cs
- _NetRes.cs
- ColorMatrix.cs
- NumericUpDownAccelerationCollection.cs
- RegexStringValidatorAttribute.cs
- UnrecognizedAssertionsBindingElement.cs
- SafeEventLogWriteHandle.cs
- MeasurementDCInfo.cs
- UnsafeNetInfoNativeMethods.cs
- OleDbConnectionFactory.cs
- QilInvokeEarlyBound.cs
- RequestDescription.cs
- XmlSerializerSection.cs
- EventToken.cs
- ContextActivityUtils.cs
- DefaultEventAttribute.cs
- ObjectQueryState.cs
- OleDbConnection.cs
- OdbcDataAdapter.cs
- ServiceBehaviorElement.cs
- WebPartConnectionCollection.cs
- entitydatasourceentitysetnameconverter.cs
- TraceEventCache.cs
- IItemContainerGenerator.cs
- DefaultValueAttribute.cs
- FieldNameLookup.cs
- UserControlCodeDomTreeGenerator.cs
- ToolStripLabel.cs
- SafeFindHandle.cs
- WinFormsSecurity.cs
- ObjectContext.cs