Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / RelationshipType.cs / 2 / 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
- EdmComplexPropertyAttribute.cs
- mediaeventshelper.cs
- ScalarType.cs
- TransformDescriptor.cs
- LabelDesigner.cs
- QilInvokeLateBound.cs
- HtmlSelect.cs
- FrameworkContentElementAutomationPeer.cs
- TemplateBamlTreeBuilder.cs
- LiteralLink.cs
- PingReply.cs
- WebPartRestoreVerb.cs
- LabelDesigner.cs
- NumericUpDownAcceleration.cs
- AudioBase.cs
- MonikerHelper.cs
- GroupDescription.cs
- NameValueSectionHandler.cs
- CatalogPartChrome.cs
- _SecureChannel.cs
- NetSectionGroup.cs
- RowBinding.cs
- Decimal.cs
- DoubleSumAggregationOperator.cs
- ProtectedProviderSettings.cs
- Freezable.cs
- GridViewColumnHeader.cs
- HtmlTableRow.cs
- PeerContact.cs
- ReadOnlyDataSource.cs
- DesignTimeVisibleAttribute.cs
- AdRotator.cs
- ADMembershipProvider.cs
- BaseAppDomainProtocolHandler.cs
- EntityConnectionStringBuilderItem.cs
- XPathNodeInfoAtom.cs
- ControlBuilderAttribute.cs
- PieceDirectory.cs
- ClientSponsor.cs
- WinInet.cs
- MessageFormatterConverter.cs
- ControlValuePropertyAttribute.cs
- DataBindingCollectionConverter.cs
- PriorityQueue.cs
- XsltSettings.cs
- CreateSequence.cs
- Signature.cs
- MiniConstructorInfo.cs
- SizeAnimationClockResource.cs
- DesignerSerializationVisibilityAttribute.cs
- ItemsControlAutomationPeer.cs
- RuntimeConfig.cs
- EdmToObjectNamespaceMap.cs
- WebPartVerbCollection.cs
- JsonDataContract.cs
- xmlformatgeneratorstatics.cs
- SymmetricAlgorithm.cs
- BooleanToVisibilityConverter.cs
- PathGradientBrush.cs
- CodeIdentifier.cs
- DirectoryNotFoundException.cs
- ParseElementCollection.cs
- ButtonRenderer.cs
- X509SecurityTokenProvider.cs
- PropertyInformationCollection.cs
- DataGridViewIntLinkedList.cs
- SqlRowUpdatingEvent.cs
- ExpressionBuilder.cs
- EditingCoordinator.cs
- Win32.cs
- ScrollChrome.cs
- FilePrompt.cs
- CodeMethodInvokeExpression.cs
- SqlFunctionAttribute.cs
- ToolStripTextBox.cs
- SQLDoubleStorage.cs
- XmlTextWriter.cs
- ListBindableAttribute.cs
- DataRowComparer.cs
- SHA512Managed.cs
- ExpressionConverter.cs
- Transaction.cs
- XmlChoiceIdentifierAttribute.cs
- _ListenerResponseStream.cs
- ButtonBaseAdapter.cs
- TranslateTransform.cs
- TimeManager.cs
- ControlAdapter.cs
- Label.cs
- TextElement.cs
- TableCell.cs
- SiteMapProvider.cs
- CodeTypeConstructor.cs
- WriteFileContext.cs
- Tuple.cs
- SingleTagSectionHandler.cs
- NetStream.cs
- InlineCollection.cs
- WebPart.cs
- BasicHttpSecurityMode.cs