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
- FacetValueContainer.cs
- ChangeProcessor.cs
- GenericIdentity.cs
- WebServiceEnumData.cs
- DataReceivedEventArgs.cs
- unitconverter.cs
- LowerCaseStringConverter.cs
- BasicCommandTreeVisitor.cs
- UnmanagedMemoryStream.cs
- ZoneMembershipCondition.cs
- SoapFault.cs
- DataGridViewAutoSizeModeEventArgs.cs
- HttpCapabilitiesEvaluator.cs
- TypeForwardedToAttribute.cs
- SEHException.cs
- VBCodeProvider.cs
- ReversePositionQuery.cs
- ModuleConfigurationInfo.cs
- StringExpressionSet.cs
- ListDictionary.cs
- ResourceDescriptionAttribute.cs
- BooleanAnimationUsingKeyFrames.cs
- TerminateSequenceResponse.cs
- CorePropertiesFilter.cs
- formatter.cs
- RotateTransform.cs
- ActivityExecutorDelegateInfo.cs
- WebConfigurationManager.cs
- SchemaImporterExtensionElementCollection.cs
- FtpWebRequest.cs
- NameValuePair.cs
- TextSpanModifier.cs
- AccessedThroughPropertyAttribute.cs
- AsyncPostBackTrigger.cs
- OperationCanceledException.cs
- IISUnsafeMethods.cs
- SafeHandle.cs
- _ProxyChain.cs
- EntryIndex.cs
- SoapExtension.cs
- RepeatInfo.cs
- TextBounds.cs
- WebPartDescriptionCollection.cs
- DocumentManager.cs
- ProviderCommandInfoUtils.cs
- CacheRequest.cs
- DesignerDataRelationship.cs
- XmlSchemaValidationException.cs
- arabicshape.cs
- CultureInfoConverter.cs
- CodeTypeMember.cs
- CoreChannel.cs
- TouchesOverProperty.cs
- XmlObjectSerializerReadContext.cs
- ComplexTypeEmitter.cs
- SqlGatherProducedAliases.cs
- SqlCharStream.cs
- IPipelineRuntime.cs
- basecomparevalidator.cs
- ExpressionBindingCollection.cs
- StringStorage.cs
- Message.cs
- DBSchemaRow.cs
- QueryResponse.cs
- dataobject.cs
- ActivityExecutor.cs
- UTF8Encoding.cs
- ReferentialConstraint.cs
- WebControlAdapter.cs
- CodeDOMUtility.cs
- LinkClickEvent.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- thaishape.cs
- ImportCatalogPart.cs
- ListBoxChrome.cs
- invalidudtexception.cs
- RequestQueue.cs
- ProcessRequestArgs.cs
- XmlNode.cs
- ConfigurationSectionHelper.cs
- PaintValueEventArgs.cs
- QilBinary.cs
- WebPartsPersonalization.cs
- UnknownBitmapEncoder.cs
- ObjectHandle.cs
- AutomationPeer.cs
- ImageClickEventArgs.cs
- SecurityBindingElementImporter.cs
- InkCanvasInnerCanvas.cs
- SoapSchemaImporter.cs
- EventLogEntry.cs
- keycontainerpermission.cs
- TCPClient.cs
- DefinitionBase.cs
- IItemProperties.cs
- StorageAssociationSetMapping.cs
- Win32Exception.cs
- HttpHandlerAction.cs
- Triplet.cs
- CheckBoxStandardAdapter.cs