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
- ToolStripContainerDesigner.cs
- AuthenticatingEventArgs.cs
- TemplateXamlParser.cs
- Pkcs7Signer.cs
- As.cs
- AmbientValueAttribute.cs
- WizardSideBarListControlItem.cs
- GPPOINTF.cs
- GeneralTransformGroup.cs
- RotateTransform3D.cs
- DockPanel.cs
- TimeoutException.cs
- GridViewCancelEditEventArgs.cs
- OLEDB_Enum.cs
- PerformanceCounterLib.cs
- _ContextAwareResult.cs
- DuplicateDetector.cs
- ContextStaticAttribute.cs
- WebPart.cs
- SqlUserDefinedAggregateAttribute.cs
- AutoResetEvent.cs
- AttributeCollection.cs
- TextSimpleMarkerProperties.cs
- Context.cs
- CodeAccessSecurityEngine.cs
- OperationDescription.cs
- PersonalizationStateInfoCollection.cs
- PageBuildProvider.cs
- ListItemParagraph.cs
- ServiceModelStringsVersion1.cs
- TemporaryBitmapFile.cs
- State.cs
- HttpContext.cs
- InternalResources.cs
- VirtualPathUtility.cs
- SlipBehavior.cs
- NotifyCollectionChangedEventArgs.cs
- SqlFlattener.cs
- ProcessHost.cs
- SqlDataRecord.cs
- WindowsStreamSecurityUpgradeProvider.cs
- XmlEventCache.cs
- XmlSchemaComplexContent.cs
- OpenTypeCommon.cs
- ObjectHelper.cs
- NativeWindow.cs
- ManagedIStream.cs
- SiteMapDataSource.cs
- HtmlTitle.cs
- SynchronizationScope.cs
- LocalizableAttribute.cs
- Pen.cs
- EntityDataSourceQueryBuilder.cs
- Keywords.cs
- OutputScopeManager.cs
- MouseEvent.cs
- SqlRewriteScalarSubqueries.cs
- QilInvoke.cs
- XmlUtil.cs
- SubpageParaClient.cs
- EnvelopedPkcs7.cs
- WebEventTraceProvider.cs
- SecurityContextSecurityTokenParameters.cs
- ConversionContext.cs
- SendMailErrorEventArgs.cs
- SocketInformation.cs
- PipelineDeploymentState.cs
- LineSegment.cs
- ViewSimplifier.cs
- ComponentRenameEvent.cs
- ExcCanonicalXml.cs
- UInt16Converter.cs
- DataServiceConfiguration.cs
- JsonReaderDelegator.cs
- CodeParameterDeclarationExpression.cs
- GeneratedContractType.cs
- StylusDownEventArgs.cs
- HttpContextServiceHost.cs
- EmissiveMaterial.cs
- IArgumentProvider.cs
- ChtmlCommandAdapter.cs
- ConfigDefinitionUpdates.cs
- StyleXamlParser.cs
- AutoGeneratedFieldProperties.cs
- DataTableClearEvent.cs
- TraceProvider.cs
- WinHttpWebProxyFinder.cs
- InteropAutomationProvider.cs
- BlurEffect.cs
- MarkerProperties.cs
- FontCollection.cs
- IsolatedStorageException.cs
- EntityContainerEmitter.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- HtmlContainerControl.cs
- ApplicationException.cs
- CodeMemberMethod.cs
- TextStore.cs
- ServiceSecurityContext.cs
- SqlReferenceCollection.cs