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
- ResXBuildProvider.cs
- RemoteWebConfigurationHost.cs
- HebrewNumber.cs
- Utils.cs
- DragEventArgs.cs
- Attributes.cs
- UriTemplatePathPartiallyEquivalentSet.cs
- XXXInfos.cs
- RowBinding.cs
- HandleInitializationContext.cs
- ListChangedEventArgs.cs
- ConfigurationElementCollection.cs
- Boolean.cs
- SqlRowUpdatedEvent.cs
- OperatorExpressions.cs
- DesigntimeLicenseContextSerializer.cs
- RightsManagementEncryptionTransform.cs
- PeerContact.cs
- QEncodedStream.cs
- XmlSerializerVersionAttribute.cs
- WriteTimeStream.cs
- TextTrailingCharacterEllipsis.cs
- ExceptQueryOperator.cs
- OleDbParameter.cs
- GenericPrincipal.cs
- ContentAlignmentEditor.cs
- DesignerVerb.cs
- DoubleAnimationBase.cs
- TextRangeEdit.cs
- NonPrimarySelectionGlyph.cs
- KnownBoxes.cs
- XmlILIndex.cs
- MexHttpsBindingElement.cs
- KoreanCalendar.cs
- RsaKeyIdentifierClause.cs
- WebControlAdapter.cs
- FacetValues.cs
- SessionPageStatePersister.cs
- XPathNodeList.cs
- sortedlist.cs
- wgx_sdk_version.cs
- BaseDataList.cs
- HandlerBase.cs
- TableHeaderCell.cs
- DataGridCommandEventArgs.cs
- SingleAnimationBase.cs
- CellTreeSimplifier.cs
- TemplatedAdorner.cs
- StylusPlugInCollection.cs
- FuncCompletionCallbackWrapper.cs
- DataTemplate.cs
- ADConnectionHelper.cs
- ScrollPattern.cs
- SerializableAttribute.cs
- ImportException.cs
- ConstraintStruct.cs
- PrintPreviewControl.cs
- MULTI_QI.cs
- DocumentAutomationPeer.cs
- DateTime.cs
- RealProxy.cs
- Size.cs
- DecimalAnimationBase.cs
- TableAutomationPeer.cs
- DrawTreeNodeEventArgs.cs
- BindToObject.cs
- EmptyReadOnlyDictionaryInternal.cs
- RegisteredHiddenField.cs
- BufferModesCollection.cs
- SamlSecurityToken.cs
- Exceptions.cs
- InputProviderSite.cs
- Light.cs
- DynamicQueryableWrapper.cs
- DefaultSection.cs
- DbConnectionPoolCounters.cs
- SoapAttributes.cs
- PropertyToken.cs
- ComponentEvent.cs
- HashCodeCombiner.cs
- CqlGenerator.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- PropertyPathWorker.cs
- TextRunCacheImp.cs
- ToolStripControlHost.cs
- KeyGestureValueSerializer.cs
- TableLayoutStyle.cs
- FilterableAttribute.cs
- ConnectorSelectionGlyph.cs
- ServicesExceptionNotHandledEventArgs.cs
- ScriptResourceAttribute.cs
- ThicknessAnimation.cs
- RoutedEventValueSerializer.cs
- SmtpDigestAuthenticationModule.cs
- OleDbDataReader.cs
- BlurEffect.cs
- XmlSchemaExporter.cs
- SelectionHighlightInfo.cs
- WebConfigurationHostFileChange.cs
- HttpRequest.cs