Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / RelationshipType.cs / 1 / 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
- ConstraintConverter.cs
- TypeConstant.cs
- DetailsViewRow.cs
- WindowsMenu.cs
- DataMemberConverter.cs
- Converter.cs
- DataSourceSelectArguments.cs
- Aggregates.cs
- DetailsViewUpdateEventArgs.cs
- DependencyProperty.cs
- ForEachDesigner.xaml.cs
- PropertyGrid.cs
- SafeIUnknown.cs
- Gdiplus.cs
- StorageMappingFragment.cs
- Run.cs
- CodeParameterDeclarationExpression.cs
- TagPrefixCollection.cs
- EdmFunction.cs
- CommandEventArgs.cs
- EventLogger.cs
- DataGridViewButtonCell.cs
- XPathBinder.cs
- Rfc2898DeriveBytes.cs
- DataBindEngine.cs
- SyntaxCheck.cs
- ScriptingWebServicesSectionGroup.cs
- DoubleLinkListEnumerator.cs
- CharacterBuffer.cs
- ClientProxyGenerator.cs
- Point.cs
- CustomAttributeSerializer.cs
- DocumentCollection.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- CompoundFileIOPermission.cs
- ChannelAcceptor.cs
- Crypto.cs
- Enlistment.cs
- CursorInteropHelper.cs
- KeyValuePairs.cs
- XmlTextEncoder.cs
- CompositeDataBoundControl.cs
- HttpCapabilitiesSectionHandler.cs
- ColumnMapTranslator.cs
- SwitchDesigner.xaml.cs
- UpdateProgress.cs
- SqlError.cs
- Nodes.cs
- OdbcConnectionStringbuilder.cs
- GlyphingCache.cs
- AutomationElement.cs
- StyleHelper.cs
- ScrollChrome.cs
- ImageListStreamer.cs
- KerberosSecurityTokenAuthenticator.cs
- StrokeSerializer.cs
- RenamedEventArgs.cs
- XPathAncestorIterator.cs
- RestrictedTransactionalPackage.cs
- SchemaTableColumn.cs
- FileDataSourceCache.cs
- ListGeneralPage.cs
- CodeTypeConstructor.cs
- DataControlPagerLinkButton.cs
- SecurityPermission.cs
- TreeView.cs
- RoutingTable.cs
- WS2007HttpBinding.cs
- Console.cs
- BaseValidator.cs
- AttributeQuery.cs
- OutputScopeManager.cs
- XmlAttribute.cs
- TextTreeText.cs
- CacheAxisQuery.cs
- WebHttpElement.cs
- DodSequenceMerge.cs
- SimpleType.cs
- VisualTreeHelper.cs
- GeneralTransform2DTo3D.cs
- ErrorEventArgs.cs
- DateTimeOffsetConverter.cs
- StorageBasedPackageProperties.cs
- DateTimeFormat.cs
- AsyncOperationManager.cs
- Translator.cs
- Renderer.cs
- ResolvedKeyFrameEntry.cs
- RegexCapture.cs
- BuildProviderAppliesToAttribute.cs
- ElementProxy.cs
- SystemPens.cs
- DiscreteKeyFrames.cs
- HistoryEventArgs.cs
- CompositeScriptReference.cs
- BitSet.cs
- SqlAliasesReferenced.cs
- Transform.cs
- SqlFunctionAttribute.cs
- StrokeIntersection.cs