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
- DispatcherEventArgs.cs
- ExecutionEngineException.cs
- CharacterMetrics.cs
- StandardOleMarshalObject.cs
- SrgsSubset.cs
- Point4D.cs
- ServiceReflector.cs
- XmlSchemaObjectCollection.cs
- OdbcRowUpdatingEvent.cs
- ObjRef.cs
- DataSourceHelper.cs
- WindowsSysHeader.cs
- GetParentChain.cs
- ControlParameter.cs
- xmlsaver.cs
- OSFeature.cs
- ICspAsymmetricAlgorithm.cs
- HttpWebResponse.cs
- AutomationEventArgs.cs
- GetImportFileNameRequest.cs
- SQLInt32.cs
- PerformanceCounterPermissionEntryCollection.cs
- WebPartEventArgs.cs
- VirtualPathUtility.cs
- SlipBehavior.cs
- Model3D.cs
- UpDownBase.cs
- CompilationSection.cs
- VariableQuery.cs
- _NetworkingPerfCounters.cs
- GeometryCollection.cs
- ArraySortHelper.cs
- TdsParserSafeHandles.cs
- GeneralTransformGroup.cs
- IconConverter.cs
- ScrollableControl.cs
- IncrementalReadDecoders.cs
- HttpCookie.cs
- ObjectListCommandsPage.cs
- TreeView.cs
- HostProtectionPermission.cs
- WindowInteropHelper.cs
- XamlStyleSerializer.cs
- DBDataPermission.cs
- FilterQuery.cs
- UInt16.cs
- NullRuntimeConfig.cs
- InvalidCastException.cs
- LazyTextWriterCreator.cs
- UInt64.cs
- CoreSwitches.cs
- PersonalizationDictionary.cs
- RtfFormatStack.cs
- ChannelPoolSettingsElement.cs
- CallbackException.cs
- DataServiceRequest.cs
- CustomTypeDescriptor.cs
- FixUp.cs
- JournalEntryStack.cs
- OperationDescriptionCollection.cs
- FieldMetadata.cs
- Constraint.cs
- SqlRecordBuffer.cs
- Pair.cs
- IDQuery.cs
- ToolStripControlHost.cs
- EastAsianLunisolarCalendar.cs
- ReadOnlyTernaryTree.cs
- UTF7Encoding.cs
- ScaleTransform.cs
- SiteMap.cs
- Axis.cs
- MenuScrollingVisibilityConverter.cs
- ProxyHwnd.cs
- ResourceAttributes.cs
- DependencyPropertyKey.cs
- ProgressBarRenderer.cs
- SrgsDocumentParser.cs
- MULTI_QI.cs
- XmlComplianceUtil.cs
- DragDropHelper.cs
- TypedDataSourceCodeGenerator.cs
- DiscoveryClientReferences.cs
- UpdateExpressionVisitor.cs
- ElementMarkupObject.cs
- PersistenceException.cs
- SourceFileInfo.cs
- CodeConstructor.cs
- XmlAttributeCache.cs
- ModelTreeEnumerator.cs
- CodeLabeledStatement.cs
- DependencyObject.cs
- ParallelTimeline.cs
- DbMetaDataCollectionNames.cs
- XmlMtomReader.cs
- ResumeStoryboard.cs
- PackageRelationshipSelector.cs
- LockingPersistenceProvider.cs
- MenuItem.cs
- IndexedDataBuffer.cs