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
- HtmlTableRow.cs
- ButtonPopupAdapter.cs
- Condition.cs
- ResXResourceReader.cs
- ViewUtilities.cs
- FilterQueryOptionExpression.cs
- ChildTable.cs
- ServiceOperation.cs
- fixedPageContentExtractor.cs
- TextMarkerSource.cs
- ManagementObjectCollection.cs
- HttpListenerResponse.cs
- AssemblyBuilderData.cs
- WorkBatch.cs
- XPathAncestorIterator.cs
- InplaceBitmapMetadataWriter.cs
- TypeSystem.cs
- RectAnimationBase.cs
- CoreSwitches.cs
- WebPartsPersonalization.cs
- StandardOleMarshalObject.cs
- SHA1.cs
- PopOutPanel.cs
- ValueConversionAttribute.cs
- RawAppCommandInputReport.cs
- HierarchicalDataSourceControl.cs
- EnvironmentPermission.cs
- SchemaImporterExtensionsSection.cs
- CellTreeNode.cs
- CodeSnippetStatement.cs
- PowerStatus.cs
- SizeAnimationUsingKeyFrames.cs
- DetailsView.cs
- DCSafeHandle.cs
- MethodImplAttribute.cs
- MetadataItem.cs
- Property.cs
- ConfigViewGenerator.cs
- EnumValidator.cs
- ImageAutomationPeer.cs
- ErrorProvider.cs
- SQLMoneyStorage.cs
- WindowsGraphics2.cs
- CompositeDataBoundControl.cs
- UnsafeNativeMethodsCLR.cs
- DirectoryObjectSecurity.cs
- XmlEncoding.cs
- TemplateControlCodeDomTreeGenerator.cs
- EventSourceCreationData.cs
- ResolveCriteriaApril2005.cs
- Model3DGroup.cs
- QueueTransferProtocol.cs
- ManagedWndProcTracker.cs
- FixedSOMTextRun.cs
- TextTreeDeleteContentUndoUnit.cs
- IChannel.cs
- DecoratedNameAttribute.cs
- ShapeTypeface.cs
- ControlValuePropertyAttribute.cs
- DurableErrorHandler.cs
- UnknownBitmapDecoder.cs
- SchemaImporter.cs
- TabOrder.cs
- ContextMenu.cs
- DeferredElementTreeState.cs
- XsltOutput.cs
- CodeCommentStatement.cs
- DbgUtil.cs
- DataGridItemCollection.cs
- Schema.cs
- JsonCollectionDataContract.cs
- Socket.cs
- XslException.cs
- CodeExporter.cs
- TextEditorCharacters.cs
- ObjectPropertyMapping.cs
- ListGeneralPage.cs
- PageAction.cs
- Duration.cs
- Conditional.cs
- MsmqIntegrationProcessProtocolHandler.cs
- TraceLevelHelper.cs
- IIS7UserPrincipal.cs
- ViewCellSlot.cs
- ExpressionValueEditor.cs
- OdbcEnvironment.cs
- FixedSOMPageConstructor.cs
- SemanticValue.cs
- LassoSelectionBehavior.cs
- PeerCollaborationPermission.cs
- PreviewPageInfo.cs
- FormattedText.cs
- ToggleButton.cs
- DelegatingStream.cs
- EntityStoreSchemaFilterEntry.cs
- IIS7WorkerRequest.cs
- PathTooLongException.cs
- IChannel.cs
- GridViewColumnCollection.cs
- SerializationFieldInfo.cs