Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / RelationshipType.cs / 3 / 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
- MinimizableAttributeTypeConverter.cs
- CodeSnippetStatement.cs
- SharedStatics.cs
- DataGridState.cs
- DelegateHelpers.Generated.cs
- FamilyTypeface.cs
- RtType.cs
- TakeQueryOptionExpression.cs
- FormViewModeEventArgs.cs
- SessionEndingEventArgs.cs
- Line.cs
- SystemIcmpV6Statistics.cs
- TemplateAction.cs
- SqlDataSourceView.cs
- CachedRequestParams.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- SettingsProperty.cs
- ClientSettingsStore.cs
- ValidationResults.cs
- ConnectionsZone.cs
- Font.cs
- Token.cs
- ConstraintManager.cs
- PointCollection.cs
- StringReader.cs
- FacetEnabledSchemaElement.cs
- HighlightComponent.cs
- UrlMapping.cs
- DataBoundControl.cs
- CharKeyFrameCollection.cs
- CompilationLock.cs
- RawStylusInputCustomData.cs
- ObjectDataSourceStatusEventArgs.cs
- HttpClientCertificate.cs
- OutputCacheProfileCollection.cs
- Baml6ConstructorInfo.cs
- BuildDependencySet.cs
- FunctionDetailsReader.cs
- MyContact.cs
- TemplateControl.cs
- URLAttribute.cs
- ProcessHost.cs
- TagPrefixCollection.cs
- TypefaceMetricsCache.cs
- CodeMethodInvokeExpression.cs
- CreateDataSourceDialog.cs
- ProvidePropertyAttribute.cs
- Control.cs
- ImageSourceValueSerializer.cs
- DataSetMappper.cs
- InputMethodStateTypeInfo.cs
- SourceFileInfo.cs
- ToolBarTray.cs
- StrokeNodeEnumerator.cs
- bidPrivateBase.cs
- ElementHostAutomationPeer.cs
- Update.cs
- HtmlFormAdapter.cs
- Console.cs
- WindowsStartMenu.cs
- WebServiceAttribute.cs
- _IPv6Address.cs
- CompressStream.cs
- GPRECT.cs
- RecognizeCompletedEventArgs.cs
- SharedHttpTransportManager.cs
- EventBuilder.cs
- LoginName.cs
- EDesignUtil.cs
- WhitespaceRuleReader.cs
- TcpSocketManager.cs
- TimeoutValidationAttribute.cs
- SwitchAttribute.cs
- __Error.cs
- ColumnMapVisitor.cs
- CallbackValidator.cs
- PeerEndPoint.cs
- ReflectionHelper.cs
- UnsafeNativeMethods.cs
- ProvidersHelper.cs
- RelatedCurrencyManager.cs
- WebPartZoneBaseDesigner.cs
- WebPartConnectionsCancelVerb.cs
- LineGeometry.cs
- DbSetClause.cs
- _AcceptOverlappedAsyncResult.cs
- SqlClientPermission.cs
- PartialClassGenerationTask.cs
- UnsafeNativeMethods.cs
- ValidationEventArgs.cs
- XmlSchemaSearchPattern.cs
- GridViewPageEventArgs.cs
- CompilerInfo.cs
- CallSite.cs
- LogEntrySerialization.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- documentsequencetextcontainer.cs
- EventLogEntry.cs
- GeneralTransform3DTo2D.cs
- JapaneseCalendar.cs