Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / RelationshipType.cs / 2 / 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
- DbConnectionOptions.cs
- PieceDirectory.cs
- NumericUpDownAcceleration.cs
- RijndaelManaged.cs
- UrlPath.cs
- ScriptingScriptResourceHandlerSection.cs
- MetadataPropertyAttribute.cs
- VectorAnimationUsingKeyFrames.cs
- FileUtil.cs
- WorkflowInstanceProxy.cs
- DataBindingHandlerAttribute.cs
- Registration.cs
- XmlDownloadManager.cs
- UnwrappedTypesXmlSerializerManager.cs
- ProfileParameter.cs
- TemplateField.cs
- TextMetrics.cs
- RoleGroupCollection.cs
- HMACSHA512.cs
- Parsers.cs
- RepeaterCommandEventArgs.cs
- XmlEventCache.cs
- ConditionCollection.cs
- EntityDataSourceViewSchema.cs
- LinearKeyFrames.cs
- ShaperBuffers.cs
- XPathCompileException.cs
- Util.cs
- WebRequestModuleElement.cs
- DateTimeParse.cs
- ISAPIWorkerRequest.cs
- XPathSelectionIterator.cs
- x509store.cs
- CallSiteHelpers.cs
- XmlTypeMapping.cs
- ListBoxItem.cs
- CertificateReferenceElement.cs
- DesignerActionKeyboardBehavior.cs
- StreamHelper.cs
- SymbolType.cs
- ECDsaCng.cs
- Freezable.cs
- DataConnectionHelper.cs
- XamlSerializerUtil.cs
- ChangeConflicts.cs
- XamlWrappingReader.cs
- XmlEncodedRawTextWriter.cs
- SettingsPropertyValue.cs
- InstanceData.cs
- unsafeIndexingFilterStream.cs
- ColorTransformHelper.cs
- FileIOPermission.cs
- ArgIterator.cs
- RuntimeConfig.cs
- ReadWriteObjectLock.cs
- Aggregates.cs
- XmlSchemaNotation.cs
- ImageInfo.cs
- CodeCommentStatementCollection.cs
- RemoteDebugger.cs
- GrammarBuilderRuleRef.cs
- PasswordBox.cs
- _ChunkParse.cs
- EndEvent.cs
- DeferredReference.cs
- OptimisticConcurrencyException.cs
- Group.cs
- NotImplementedException.cs
- MetaModel.cs
- PolyBezierSegment.cs
- HiddenField.cs
- JapaneseLunisolarCalendar.cs
- Token.cs
- Baml2006ReaderFrame.cs
- FindProgressChangedEventArgs.cs
- WebPartConnection.cs
- HierarchicalDataSourceControl.cs
- BooleanFunctions.cs
- SettingsSection.cs
- XmlSchemaExporter.cs
- FileCodeGroup.cs
- FormViewInsertEventArgs.cs
- DiagnosticsConfigurationHandler.cs
- querybuilder.cs
- ResourceType.cs
- _ContextAwareResult.cs
- TrayIconDesigner.cs
- PropertyPushdownHelper.cs
- ClientBuildManager.cs
- RemoteHelper.cs
- SafeHandle.cs
- Stylesheet.cs
- FederatedMessageSecurityOverHttpElement.cs
- ImageCodecInfo.cs
- ProfileBuildProvider.cs
- ZipIOLocalFileBlock.cs
- MouseGesture.cs
- NoneExcludedImageIndexConverter.cs
- BaseCodeDomTreeGenerator.cs
- Mapping.cs