Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / RelationshipType.cs / 1305376 / RelationshipType.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- 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 [....] // @backupOwner [....] //--------------------------------------------------------------------- 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
- ConstraintStruct.cs
- PolicyConversionContext.cs
- SqlTopReducer.cs
- WindowsTokenRoleProvider.cs
- TouchPoint.cs
- ErasingStroke.cs
- PerSessionInstanceContextProvider.cs
- FigureParagraph.cs
- Bezier.cs
- translator.cs
- FlowDocument.cs
- BinaryWriter.cs
- CompModSwitches.cs
- ResourceManager.cs
- WeakReference.cs
- ProgressBarRenderer.cs
- CharStorage.cs
- FamilyTypefaceCollection.cs
- DataListCommandEventArgs.cs
- ToolStripItemEventArgs.cs
- DocumentReferenceCollection.cs
- DependencyPropertyChangedEventArgs.cs
- ConfigurationElement.cs
- MenuItemAutomationPeer.cs
- StreamReader.cs
- FileVersion.cs
- Size.cs
- SqlBinder.cs
- UpDownEvent.cs
- VariableModifiersHelper.cs
- DifferencingCollection.cs
- DataMemberConverter.cs
- HtmlInputCheckBox.cs
- ListSortDescription.cs
- Thickness.cs
- CommandBindingCollection.cs
- ProjectionPlanCompiler.cs
- XmlWellformedWriter.cs
- IsolatedStorageFileStream.cs
- unitconverter.cs
- CopyAttributesAction.cs
- RightsManagementEncryptionTransform.cs
- XPathConvert.cs
- IIS7UserPrincipal.cs
- SafeRightsManagementPubHandle.cs
- WebPartRestoreVerb.cs
- BypassElement.cs
- PointValueSerializer.cs
- AttributeProviderAttribute.cs
- EnumerableRowCollectionExtensions.cs
- SafePointer.cs
- Command.cs
- RightsManagementUser.cs
- AnnotationObservableCollection.cs
- DesignerActionListCollection.cs
- ModelVisual3D.cs
- Rectangle.cs
- SqlConnectionHelper.cs
- CultureInfoConverter.cs
- StorageSetMapping.cs
- ExclusiveCanonicalizationTransform.cs
- TransformPattern.cs
- BoundingRectTracker.cs
- XsltConvert.cs
- NetSectionGroup.cs
- DataTableCollection.cs
- Attributes.cs
- IndexedString.cs
- SpecialTypeDataContract.cs
- SecurityTokenProvider.cs
- RowToFieldTransformer.cs
- PageRanges.cs
- FormatException.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- DetailsView.cs
- SspiSecurityTokenParameters.cs
- Point4D.cs
- ToolStripContentPanel.cs
- AccessedThroughPropertyAttribute.cs
- ChtmlFormAdapter.cs
- SiteMapPathDesigner.cs
- TextBreakpoint.cs
- TypeNameParser.cs
- DataGridViewCellStyleChangedEventArgs.cs
- EntitySqlQueryCacheKey.cs
- WebSysDisplayNameAttribute.cs
- AxDesigner.cs
- UnsettableComboBox.cs
- SimplePropertyEntry.cs
- CodeMemberField.cs
- EntityStoreSchemaGenerator.cs
- InternalConfigConfigurationFactory.cs
- TableLayoutCellPaintEventArgs.cs
- Base64Stream.cs
- FilteredDataSetHelper.cs
- ToolStripTextBox.cs
- webproxy.cs
- CustomAttributeBuilder.cs
- ListBoxItemWrapperAutomationPeer.cs
- WebBrowser.cs