Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- TreeSet.cs
- CaseExpr.cs
- HttpRequestMessageProperty.cs
- SoapUnknownHeader.cs
- TypeHelper.cs
- RadioButton.cs
- Rule.cs
- ClearCollection.cs
- ToolStripContainer.cs
- ClientScriptManager.cs
- AxHost.cs
- SqlDataSourceFilteringEventArgs.cs
- BuildProviderCollection.cs
- PropertyOverridesTypeEditor.cs
- NativeMethods.cs
- CqlParser.cs
- ArrayConverter.cs
- X509Extension.cs
- SetMemberBinder.cs
- RelatedImageListAttribute.cs
- EntityDesignerDataSourceView.cs
- FacetValueContainer.cs
- CanonicalFontFamilyReference.cs
- Compiler.cs
- sqlstateclientmanager.cs
- AspNetSynchronizationContext.cs
- ReflectionPermission.cs
- XmlUtf8RawTextWriter.cs
- IndexOutOfRangeException.cs
- SoapHeaderAttribute.cs
- Module.cs
- NativeCppClassAttribute.cs
- KerberosReceiverSecurityToken.cs
- ShaderRenderModeValidation.cs
- DefaultValueTypeConverter.cs
- TextWriter.cs
- BufferedWebEventProvider.cs
- WebPartsPersonalizationAuthorization.cs
- Expression.cs
- MultiView.cs
- OracleCommandBuilder.cs
- CompositeFontParser.cs
- CallbackHandler.cs
- RuleInfoComparer.cs
- BufferCache.cs
- ExportException.cs
- AssemblyBuilder.cs
- TrackingRecord.cs
- FrameworkElement.cs
- PagedDataSource.cs
- KeyConverter.cs
- TableLayoutStyle.cs
- ConfigXmlSignificantWhitespace.cs
- TreeNode.cs
- DataBoundControl.cs
- GridView.cs
- BaseTemplateParser.cs
- CellQuery.cs
- FrameworkElement.cs
- XmlReader.cs
- TableLayoutStyle.cs
- AdCreatedEventArgs.cs
- EntitySqlException.cs
- XPathAncestorIterator.cs
- MethodImplAttribute.cs
- MatrixAnimationUsingKeyFrames.cs
- BaseDataBoundControl.cs
- WindowsScroll.cs
- sortedlist.cs
- DodSequenceMerge.cs
- ReferenceEqualityComparer.cs
- WindowsGraphicsCacheManager.cs
- ProvideValueServiceProvider.cs
- Sql8ExpressionRewriter.cs
- RequestUriProcessor.cs
- OleStrCAMarshaler.cs
- Input.cs
- XPathAncestorQuery.cs
- PrinterUnitConvert.cs
- NonBatchDirectoryCompiler.cs
- ValueExpressions.cs
- WindowsScroll.cs
- PngBitmapEncoder.cs
- PasswordBoxAutomationPeer.cs
- DataGridViewCell.cs
- SiteMapDataSourceDesigner.cs
- QuadTree.cs
- MatrixCamera.cs
- DaylightTime.cs
- XmlQueryContext.cs
- IconConverter.cs
- filewebrequest.cs
- Ref.cs
- ForeignKeyConstraint.cs
- DataKey.cs
- FacetChecker.cs
- AttachInfo.cs
- EventHandlerList.cs
- SynchronizedInputHelper.cs
- SimpleType.cs