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
- TraceListeners.cs
- XmlElementList.cs
- RootDesignerSerializerAttribute.cs
- AutoScrollHelper.cs
- ToolStripSeparatorRenderEventArgs.cs
- AccessDataSource.cs
- XMLDiffLoader.cs
- PointF.cs
- WeakEventManager.cs
- CachedFontFamily.cs
- BooleanAnimationUsingKeyFrames.cs
- CommandDevice.cs
- AuthenticationModulesSection.cs
- SessionStateItemCollection.cs
- BamlResourceDeserializer.cs
- RectValueSerializer.cs
- CollectionAdapters.cs
- OleDbSchemaGuid.cs
- RbTree.cs
- WorkflowServiceBehavior.cs
- LineInfo.cs
- LOSFormatter.cs
- FamilyMapCollection.cs
- MissingMethodException.cs
- CancellationHandlerDesigner.cs
- RequestResponse.cs
- HttpWebRequestElement.cs
- UInt64Storage.cs
- RowsCopiedEventArgs.cs
- GrammarBuilder.cs
- SafeTimerHandle.cs
- XmlPreloadedResolver.cs
- IPHostEntry.cs
- BreadCrumbTextConverter.cs
- IteratorFilter.cs
- ReadOnlyObservableCollection.cs
- DirectoryGroupQuery.cs
- MimeReflector.cs
- prefixendpointaddressmessagefiltertable.cs
- LambdaSerializationException.cs
- QueryCacheManager.cs
- ObservableCollectionDefaultValueFactory.cs
- BevelBitmapEffect.cs
- ViewEvent.cs
- ResourcePool.cs
- DbCommandTree.cs
- EntityContainer.cs
- CheckBoxPopupAdapter.cs
- UnsafeNativeMethods.cs
- XPathNode.cs
- WebPartAddingEventArgs.cs
- Trace.cs
- SmiRecordBuffer.cs
- DependencyObjectProvider.cs
- RoleManagerModule.cs
- Util.cs
- InProcStateClientManager.cs
- Compiler.cs
- WebConfigurationFileMap.cs
- SettingsProperty.cs
- DataComponentMethodGenerator.cs
- FrameworkElementFactoryMarkupObject.cs
- HitTestParameters3D.cs
- HttpBufferlessInputStream.cs
- ZoneButton.cs
- NativeMethods.cs
- CriticalFinalizerObject.cs
- DesignTimeParseData.cs
- CacheMode.cs
- DataContractSerializerOperationGenerator.cs
- SystemTcpConnection.cs
- TimeSpanConverter.cs
- ZoneIdentityPermission.cs
- Timer.cs
- CoTaskMemHandle.cs
- UpdatePanelTriggerCollection.cs
- COAUTHIDENTITY.cs
- MarshalDirectiveException.cs
- ToolStripTextBox.cs
- DrawingGroupDrawingContext.cs
- NonceCache.cs
- LocalFileSettingsProvider.cs
- MediaSystem.cs
- TimeSpanValidator.cs
- RowToParametersTransformer.cs
- ResXFileRef.cs
- XmlCharType.cs
- SemanticValue.cs
- PipelineDeploymentState.cs
- SplitContainer.cs
- XmlNamespaceDeclarationsAttribute.cs
- BooleanFacetDescriptionElement.cs
- TreeViewImageIndexConverter.cs
- DataGridState.cs
- CompiledRegexRunnerFactory.cs
- OracleRowUpdatingEventArgs.cs
- ValidatorCompatibilityHelper.cs
- NetNamedPipeSecurityMode.cs
- SqlUserDefinedTypeAttribute.cs
- SQLGuid.cs