Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- WindowsFormsSectionHandler.cs
- ProfilePropertySettings.cs
- BamlRecordReader.cs
- ResourceDictionaryCollection.cs
- DbDataReader.cs
- UIElementCollection.cs
- ZipIOBlockManager.cs
- Propagator.ExtentPlaceholderCreator.cs
- GeneralTransform3DGroup.cs
- ProfileParameter.cs
- BuildResult.cs
- ByteAnimationBase.cs
- ToolStripCodeDomSerializer.cs
- ExceptionValidationRule.cs
- GB18030Encoding.cs
- ServiceHttpHandlerFactory.cs
- QueryOptionExpression.cs
- DocumentationServerProtocol.cs
- RegexWorker.cs
- RegistryConfigurationProvider.cs
- CompilerInfo.cs
- WebPartConnectionsConfigureVerb.cs
- SpellerStatusTable.cs
- ToggleButtonAutomationPeer.cs
- GlobalAclOperationRequirement.cs
- DataGridColumnReorderingEventArgs.cs
- StringConverter.cs
- StoragePropertyMapping.cs
- SoapConverter.cs
- MergeLocalizationDirectives.cs
- Thickness.cs
- TypeTypeConverter.cs
- ThicknessAnimationUsingKeyFrames.cs
- CheckableControlBaseAdapter.cs
- TypeSemantics.cs
- SqlDesignerDataSourceView.cs
- StickyNote.cs
- Timeline.cs
- ApplyTemplatesAction.cs
- XpsFilter.cs
- TabControl.cs
- WorkflowDesigner.cs
- PackageDigitalSignature.cs
- GZipStream.cs
- Mappings.cs
- ConnectionManagementElementCollection.cs
- COMException.cs
- TreeView.cs
- XmlTextReader.cs
- Expression.cs
- LambdaCompiler.ControlFlow.cs
- TextBreakpoint.cs
- TemplatedWizardStep.cs
- VirtualizedItemProviderWrapper.cs
- NetTcpSecurity.cs
- XmlAttribute.cs
- ObjectViewQueryResultData.cs
- Automation.cs
- TypeConverterHelper.cs
- ConnectionManagementElement.cs
- PenContext.cs
- SqlVisitor.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- Peer.cs
- AuthenticationSection.cs
- SizeChangedEventArgs.cs
- CachedCompositeFamily.cs
- ImageFormat.cs
- ViewBox.cs
- MembershipSection.cs
- ParserHooks.cs
- EventMap.cs
- DataGridViewComboBoxColumn.cs
- BeginStoryboard.cs
- DataGridViewLinkColumn.cs
- DataStreams.cs
- DataControlFieldCollection.cs
- HttpHostedTransportConfiguration.cs
- SchemaElementDecl.cs
- CallTemplateAction.cs
- ToolStripTextBox.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- DesignerActionMethodItem.cs
- OleDbConnectionFactory.cs
- JoinElimination.cs
- DataBindingCollection.cs
- ReleaseInstanceMode.cs
- DiscoveryVersionConverter.cs
- TokenBasedSetEnumerator.cs
- BehaviorEditorPart.cs
- QueryGenerator.cs
- FlowDecisionLabelFeature.cs
- StatusStrip.cs
- IndentedWriter.cs
- System.Data_BID.cs
- SafeNativeMethods.cs
- Font.cs
- ZipFileInfoCollection.cs
- Attributes.cs
- TemplateContainer.cs