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
- FullTextLine.cs
- XPathAncestorQuery.cs
- BinaryNode.cs
- KeyFrames.cs
- Normalizer.cs
- CodeNamespaceImport.cs
- GlobalAllocSafeHandle.cs
- HtmlCommandAdapter.cs
- ChannelDispatcherCollection.cs
- QueryStringParameter.cs
- DataGridViewCellStyleConverter.cs
- OptionUsage.cs
- TokenizerHelper.cs
- VectorKeyFrameCollection.cs
- NamespaceEmitter.cs
- MethodCallConverter.cs
- ValidationRuleCollection.cs
- ToolboxItemLoader.cs
- DragDrop.cs
- AccessibleObject.cs
- DataPointer.cs
- Zone.cs
- TakeOrSkipQueryOperator.cs
- DeviceContext2.cs
- ProxyGenerator.cs
- ConditionBrowserDialog.cs
- ConnectionOrientedTransportElement.cs
- BamlStream.cs
- XmlUtf8RawTextWriter.cs
- CompilerHelpers.cs
- EmbeddedMailObject.cs
- ImageFormatConverter.cs
- SessionPageStatePersister.cs
- EncryptedKeyIdentifierClause.cs
- UserPreferenceChangingEventArgs.cs
- ExpressionBindings.cs
- Int32CollectionConverter.cs
- CompiledIdentityConstraint.cs
- SingleAnimationUsingKeyFrames.cs
- AxHostDesigner.cs
- DataControlLinkButton.cs
- BamlWriter.cs
- RuleSettingsCollection.cs
- CustomAttribute.cs
- SqlProviderUtilities.cs
- ScriptingJsonSerializationSection.cs
- Merger.cs
- SamlAssertionKeyIdentifierClause.cs
- SkipQueryOptionExpression.cs
- EventLogPermissionEntryCollection.cs
- MessageSecurityTokenVersion.cs
- SessionStateModule.cs
- SoundPlayer.cs
- XmlUtil.cs
- JsonMessageEncoderFactory.cs
- ComponentSerializationService.cs
- ConcurrentStack.cs
- LoginUtil.cs
- VisualTreeHelper.cs
- FaultDesigner.cs
- WebPartMinimizeVerb.cs
- AdapterDictionary.cs
- ResourcePart.cs
- DbgUtil.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- BooleanFunctions.cs
- COM2FontConverter.cs
- WebPartMovingEventArgs.cs
- Int32Storage.cs
- TableRowGroup.cs
- XPathBinder.cs
- ListViewInsertEventArgs.cs
- Dictionary.cs
- ObjectListTitleAttribute.cs
- SqlLiftIndependentRowExpressions.cs
- AnnotationComponentChooser.cs
- DataSourceCacheDurationConverter.cs
- XmlSerializerObjectSerializer.cs
- UrlMappingsSection.cs
- XmlObjectSerializerReadContextComplexJson.cs
- TableHeaderCell.cs
- SettingsPropertyCollection.cs
- OptimalTextSource.cs
- PersonalizationProvider.cs
- BookmarkScopeHandle.cs
- Empty.cs
- KeyboardDevice.cs
- FormatStringEditor.cs
- RijndaelCryptoServiceProvider.cs
- ObjectManager.cs
- XmlTextReaderImpl.cs
- SpecularMaterial.cs
- XmlSchemaExternal.cs
- ParentQuery.cs
- ValidationRuleCollection.cs
- RegexCompilationInfo.cs
- CapabilitiesState.cs
- GlyphsSerializer.cs
- Decimal.cs
- FigureParagraph.cs