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
- XmlCDATASection.cs
- SqlBulkCopy.cs
- SecurityManager.cs
- DbMetaDataFactory.cs
- Rect.cs
- ToolStripGripRenderEventArgs.cs
- XmlTextEncoder.cs
- DesignerHelpers.cs
- SHA256Managed.cs
- HttpSessionStateWrapper.cs
- TableItemProviderWrapper.cs
- PKCS1MaskGenerationMethod.cs
- odbcmetadatafactory.cs
- base64Transforms.cs
- EdmSchemaAttribute.cs
- LingerOption.cs
- SqlWebEventProvider.cs
- TextureBrush.cs
- FrameworkReadOnlyPropertyMetadata.cs
- CellCreator.cs
- BamlBinaryReader.cs
- XPathArrayIterator.cs
- Geometry3D.cs
- ComboBoxItem.cs
- ModelTreeManager.cs
- RefExpr.cs
- SecurityCookieModeValidator.cs
- StylesEditorDialog.cs
- LoginCancelEventArgs.cs
- PingReply.cs
- Encoder.cs
- SupportsEventValidationAttribute.cs
- BinarySerializer.cs
- SerializationObjectManager.cs
- XmlSchemaSequence.cs
- PolyQuadraticBezierSegment.cs
- ProfileGroupSettingsCollection.cs
- CategoryAttribute.cs
- RequestCacheEntry.cs
- InheritanceAttribute.cs
- EndOfStreamException.cs
- GrowingArray.cs
- BasicViewGenerator.cs
- RootProfilePropertySettingsCollection.cs
- IncomingWebRequestContext.cs
- QilFactory.cs
- SourceItem.cs
- CustomAttributeBuilder.cs
- OdbcHandle.cs
- IncrementalCompileAnalyzer.cs
- VariableExpressionConverter.cs
- ToolBarOverflowPanel.cs
- lengthconverter.cs
- DefaultClaimSet.cs
- TextRenderer.cs
- PartialList.cs
- ColumnResizeUndoUnit.cs
- Point3DCollection.cs
- BamlVersionHeader.cs
- PlatformCulture.cs
- QuotedPrintableStream.cs
- ProviderUtil.cs
- KeyValuePair.cs
- ImmutableObjectAttribute.cs
- TransformPattern.cs
- CommandLineParser.cs
- TileBrush.cs
- FormViewPageEventArgs.cs
- MaterializeFromAtom.cs
- CompilerGlobalScopeAttribute.cs
- SpotLight.cs
- TreeView.cs
- CacheDependency.cs
- SimplePropertyEntry.cs
- UnhandledExceptionEventArgs.cs
- _BufferOffsetSize.cs
- XmlCDATASection.cs
- TableColumn.cs
- AnnotationAuthorChangedEventArgs.cs
- HtmlProps.cs
- OdbcFactory.cs
- MenuItemStyleCollection.cs
- RegexStringValidator.cs
- DecimalAnimation.cs
- ConfigXmlText.cs
- TdsParserStateObject.cs
- RijndaelManaged.cs
- PropertyEmitterBase.cs
- ComboBox.cs
- DateTimeStorage.cs
- _AutoWebProxyScriptWrapper.cs
- MenuStrip.cs
- CngProvider.cs
- GACMembershipCondition.cs
- CompilerLocalReference.cs
- ObjectAssociationEndMapping.cs
- SecuritySessionSecurityTokenProvider.cs
- Trigger.cs
- QuaternionConverter.cs
- DataGridViewIntLinkedList.cs