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
- FlowDocumentReaderAutomationPeer.cs
- Pair.cs
- CatalogZoneAutoFormat.cs
- PagedControl.cs
- DataGridTextBox.cs
- PropertyCondition.cs
- CompilerCollection.cs
- BrushProxy.cs
- CommandField.cs
- MatchSingleFxEngineOpcode.cs
- DynamicDataManager.cs
- Label.cs
- HierarchicalDataSourceControl.cs
- EntityCommandExecutionException.cs
- BindingManagerDataErrorEventArgs.cs
- SafeHandle.cs
- WindowsIdentity.cs
- WindowsSecurityTokenAuthenticator.cs
- DataGridViewRowPostPaintEventArgs.cs
- DataGridViewBindingCompleteEventArgs.cs
- ConnectionPoint.cs
- UInt16Converter.cs
- FormClosingEvent.cs
- WebServiceEnumData.cs
- ContractBase.cs
- DelegateHelpers.cs
- EventSchemaTraceListener.cs
- BaseDataList.cs
- XPathNavigatorReader.cs
- QueryOptionExpression.cs
- StateItem.cs
- ItemCheckEvent.cs
- BlockUIContainer.cs
- SqlXml.cs
- Function.cs
- DotAtomReader.cs
- BinaryParser.cs
- TextEditorThreadLocalStore.cs
- KeySpline.cs
- EventSinkActivityDesigner.cs
- MenuItemCollectionEditor.cs
- DataBoundControlAdapter.cs
- TableLayoutSettingsTypeConverter.cs
- TextServicesDisplayAttribute.cs
- ItemsPanelTemplate.cs
- CacheSection.cs
- WebRequest.cs
- HtmlControl.cs
- PasswordRecoveryDesigner.cs
- AddressAccessDeniedException.cs
- Number.cs
- HttpCapabilitiesBase.cs
- WebException.cs
- PrimitiveType.cs
- LiteralDesigner.cs
- ClientUtils.cs
- BaseDataListComponentEditor.cs
- NavigationPropertyAccessor.cs
- UIInitializationException.cs
- PlainXmlWriter.cs
- PlainXmlWriter.cs
- TraceContext.cs
- Array.cs
- Compiler.cs
- OperationPickerDialog.designer.cs
- UnsafeNativeMethodsPenimc.cs
- BindingList.cs
- SelectionGlyph.cs
- XmlSchemaGroupRef.cs
- UIElementIsland.cs
- Set.cs
- AuthenticatingEventArgs.cs
- StateItem.cs
- ISessionStateStore.cs
- FloaterBaseParagraph.cs
- ToolStripActionList.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- ImageListImageEditor.cs
- OdbcDataAdapter.cs
- FixedTextView.cs
- RegexNode.cs
- SqlXml.cs
- UserMapPath.cs
- DataGridViewRowPrePaintEventArgs.cs
- CFStream.cs
- InfocardExtendedInformationEntry.cs
- MenuScrollingVisibilityConverter.cs
- BamlResourceContent.cs
- NativeMethods.cs
- XmlDocumentType.cs
- Interlocked.cs
- X509Utils.cs
- NodeInfo.cs
- ToolStripDropDownClosingEventArgs.cs
- XhtmlBasicCommandAdapter.cs
- SmtpFailedRecipientException.cs
- GB18030Encoding.cs
- Label.cs
- TypefaceMetricsCache.cs
- WindowCollection.cs