Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / Structures / ExtentJoinTreeNode.cs / 1 / ExtentJoinTreeNode.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Data.Metadata.Edm; using System.Collections.Generic; using System.Diagnostics; using System.Data.Common.Utils; namespace System.Data.Mapping.ViewGeneration.Structures { // A JoinTreeNode that represents an association set or an entity set internal class ExtentJoinTreeNode : JoinTreeNode { // effects: Creates a join tree node for "extent" and no children internal ExtentJoinTreeNode(EntitySetBase extent, IEnumerablechildren, MetadataWorkspace workspace) : base(false /* isOptional */, children, workspace) { m_extent = extent; } #region Fields private EntitySetBase m_extent; #endregion #region Properties internal override EdmType NodeType { get { return m_extent.ElementType;} } internal EntitySetBase Extent { get { return m_extent; } } protected override string ContextName { get { return m_extent.Name;} } #endregion #region Methods // effects: Determines all the identifiers used in this and adds them to identifiers internal override void GetIdentifiers(CqlIdentifiers identifiers) { identifiers.AddIdentifier(m_extent.Name); identifiers.AddIdentifier(m_extent.ElementType.Name); } protected override bool IsSameContext(JoinTreeNode second) { ExtentJoinTreeNode extentNode = second as ExtentJoinTreeNode; return extentNode != null && Extent.Equals(extentNode.Extent); } protected override JoinTreeNode CreateNodeFromContext(bool nodeIsOptional, List children) { Debug.Assert(nodeIsOptional == false); return new ExtentJoinTreeNode(Extent, children, this.MetadataWorkspace); } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Data.Metadata.Edm; using System.Collections.Generic; using System.Diagnostics; using System.Data.Common.Utils; namespace System.Data.Mapping.ViewGeneration.Structures { // A JoinTreeNode that represents an association set or an entity set internal class ExtentJoinTreeNode : JoinTreeNode { // effects: Creates a join tree node for "extent" and no children internal ExtentJoinTreeNode(EntitySetBase extent, IEnumerablechildren, MetadataWorkspace workspace) : base(false /* isOptional */, children, workspace) { m_extent = extent; } #region Fields private EntitySetBase m_extent; #endregion #region Properties internal override EdmType NodeType { get { return m_extent.ElementType;} } internal EntitySetBase Extent { get { return m_extent; } } protected override string ContextName { get { return m_extent.Name;} } #endregion #region Methods // effects: Determines all the identifiers used in this and adds them to identifiers internal override void GetIdentifiers(CqlIdentifiers identifiers) { identifiers.AddIdentifier(m_extent.Name); identifiers.AddIdentifier(m_extent.ElementType.Name); } protected override bool IsSameContext(JoinTreeNode second) { ExtentJoinTreeNode extentNode = second as ExtentJoinTreeNode; return extentNode != null && Extent.Equals(extentNode.Extent); } protected override JoinTreeNode CreateNodeFromContext(bool nodeIsOptional, List children) { Debug.Assert(nodeIsOptional == false); return new ExtentJoinTreeNode(Extent, children, this.MetadataWorkspace); } #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
- CodeLabeledStatement.cs
- DataSvcMapFileSerializer.cs
- MemberDomainMap.cs
- DropDownList.cs
- ExtendedTransformFactory.cs
- ContainerVisual.cs
- DesignBinding.cs
- SiblingIterators.cs
- RegexWorker.cs
- MonitoringDescriptionAttribute.cs
- Overlapped.cs
- MenuTracker.cs
- TextEditorCopyPaste.cs
- TextureBrush.cs
- XmlValidatingReaderImpl.cs
- MetadataArtifactLoaderCompositeResource.cs
- FormViewUpdatedEventArgs.cs
- CopyOfAction.cs
- StreamHelper.cs
- WebServiceEnumData.cs
- TextPatternIdentifiers.cs
- TreeNodeMouseHoverEvent.cs
- StylusDownEventArgs.cs
- MultiView.cs
- SqlExpressionNullability.cs
- XhtmlTextWriter.cs
- AutomationPropertyInfo.cs
- ToolStripSplitStackLayout.cs
- IsolationInterop.cs
- OletxEnlistment.cs
- RegexCompilationInfo.cs
- UserControlDesigner.cs
- BaseCodeDomTreeGenerator.cs
- WebPartConnectionsConnectVerb.cs
- DbSetClause.cs
- WizardStepCollectionEditor.cs
- ProfileService.cs
- ToolStripPanel.cs
- NamespaceCollection.cs
- WindowsToolbar.cs
- StyleSelector.cs
- CommonObjectSecurity.cs
- Model3DGroup.cs
- CodeDomConfigurationHandler.cs
- OpenTypeLayoutCache.cs
- WindowsGraphicsCacheManager.cs
- StorageInfo.cs
- DateTimeConverter.cs
- ToolStrip.cs
- DateBoldEvent.cs
- ValidationSummaryDesigner.cs
- TraceListeners.cs
- DoubleAnimationClockResource.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- ApplicationHost.cs
- Math.cs
- LocatorGroup.cs
- UriWriter.cs
- FreeFormDesigner.cs
- StatusBarAutomationPeer.cs
- Section.cs
- ChooseAction.cs
- TextUtf8RawTextWriter.cs
- DirectoryObjectSecurity.cs
- ControlValuePropertyAttribute.cs
- ContainerSelectorActiveEvent.cs
- TextWriter.cs
- ValidatorCollection.cs
- XmlCountingReader.cs
- FormatException.cs
- DBConnectionString.cs
- WindowsTreeView.cs
- Floater.cs
- Path.cs
- HttpHandlerActionCollection.cs
- TextParagraphCache.cs
- ModulesEntry.cs
- ToolboxItemCollection.cs
- DbConnectionStringCommon.cs
- AlignmentYValidation.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- DataFormat.cs
- MoveSizeWinEventHandler.cs
- XmlValidatingReaderImpl.cs
- ImpersonationContext.cs
- Queue.cs
- XNodeNavigator.cs
- TimersDescriptionAttribute.cs
- _ListenerAsyncResult.cs
- ConstructorBuilder.cs
- FormViewDeleteEventArgs.cs
- XmlImplementation.cs
- ServiceOperationListItem.cs
- HandleExceptionArgs.cs
- SharedHttpTransportManager.cs
- FieldAccessException.cs
- TypeDescriptorContext.cs
- LockedBorderGlyph.cs
- PrintDialog.cs
- wgx_commands.cs