Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ColumnMapTranslator.cs
- PassportPrincipal.cs
- KeyInstance.cs
- _NetworkingPerfCounters.cs
- InfoCardArgumentException.cs
- DictionaryBase.cs
- GC.cs
- CheckedPointers.cs
- Input.cs
- AuthorizationRuleCollection.cs
- SvcFileManager.cs
- FlowDocumentView.cs
- ManagementObjectSearcher.cs
- TransformerInfo.cs
- Matrix.cs
- SiteMapDataSource.cs
- ControlBindingsConverter.cs
- Gdiplus.cs
- FigureParaClient.cs
- WindowHideOrCloseTracker.cs
- IndividualDeviceConfig.cs
- SudsWriter.cs
- NamedObject.cs
- SplineQuaternionKeyFrame.cs
- AspCompat.cs
- TransformCollection.cs
- TemplateComponentConnector.cs
- selecteditemcollection.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- UrlMapping.cs
- Clipboard.cs
- PageAsyncTaskManager.cs
- PropertiesTab.cs
- EmptyEnumerable.cs
- BindingSource.cs
- InputMethodStateTypeInfo.cs
- TextTrailingWordEllipsis.cs
- TreeViewCancelEvent.cs
- AspNetPartialTrustHelpers.cs
- PasswordDeriveBytes.cs
- Icon.cs
- TdsParameterSetter.cs
- WeakHashtable.cs
- ActiveXHelper.cs
- IssuanceLicense.cs
- MainMenu.cs
- Missing.cs
- ObsoleteAttribute.cs
- RegexTypeEditor.cs
- mansign.cs
- StringToken.cs
- __Filters.cs
- MessageAction.cs
- Unit.cs
- KeyedHashAlgorithm.cs
- ConcatQueryOperator.cs
- TextAdaptor.cs
- XmlSchemaSimpleContentRestriction.cs
- MarkerProperties.cs
- InputManager.cs
- KnownIds.cs
- DescendantOverDescendantQuery.cs
- GrowingArray.cs
- MasterPageParser.cs
- LinkedList.cs
- DiscoveryViaBehavior.cs
- EUCJPEncoding.cs
- Base64Stream.cs
- MDIControlStrip.cs
- TypeInformation.cs
- TableHeaderCell.cs
- HtmlGenericControl.cs
- StoreAnnotationsMap.cs
- Bits.cs
- KnownBoxes.cs
- PreviewPageInfo.cs
- DeviceFilterDictionary.cs
- ProcessHostServerConfig.cs
- QilTargetType.cs
- SecurityCriticalDataForSet.cs
- cache.cs
- TabControl.cs
- Variable.cs
- DiscardableAttribute.cs
- Brushes.cs
- BindingsCollection.cs
- SafeSecurityHelper.cs
- XmlTextReader.cs
- SQLBoolean.cs
- ClientEventManager.cs
- EllipticalNodeOperations.cs
- KeyedCollection.cs
- SafeProcessHandle.cs
- DuplicateWaitObjectException.cs
- AddressAccessDeniedException.cs
- LeftCellWrapper.cs
- ProfileGroupSettingsCollection.cs
- DialogWindow.cs
- SQLChars.cs
- PopupEventArgs.cs