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
- WinCategoryAttribute.cs
- NativeActivity.cs
- PrintDialog.cs
- ByteStreamGeometryContext.cs
- UTF8Encoding.cs
- SubMenuStyle.cs
- TextDecorationCollection.cs
- PasswordPropertyTextAttribute.cs
- XmlSchemaAny.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- BuildProviderAppliesToAttribute.cs
- MaskedTextBoxTextEditor.cs
- NamespaceList.cs
- CodeSnippetTypeMember.cs
- XmlSchemaIdentityConstraint.cs
- QuestionEventArgs.cs
- XPathNavigatorReader.cs
- PageCache.cs
- HierarchicalDataSourceControl.cs
- ButtonPopupAdapter.cs
- SoapInteropTypes.cs
- DiscreteKeyFrames.cs
- ManagementPath.cs
- DataGridViewColumnTypePicker.cs
- XsltContext.cs
- HostingMessageProperty.cs
- SimpleHandlerBuildProvider.cs
- ItemsControlAutomationPeer.cs
- CalendarTable.cs
- PageAsyncTaskManager.cs
- StylusCollection.cs
- EntityCommand.cs
- SQLGuidStorage.cs
- Accessors.cs
- ManagementNamedValueCollection.cs
- ContextStaticAttribute.cs
- RangeExpression.cs
- OleDbPropertySetGuid.cs
- CodeMemberField.cs
- SourceFileInfo.cs
- XmlSchemaObjectCollection.cs
- PnrpPeerResolverBindingElement.cs
- mediaclock.cs
- XmlQuerySequence.cs
- DefaultClaimSet.cs
- PolyLineSegmentFigureLogic.cs
- Visitors.cs
- StrokeCollection.cs
- EntityConnection.cs
- CodeAttributeArgumentCollection.cs
- BasicViewGenerator.cs
- DataListItem.cs
- StaticSiteMapProvider.cs
- ZipIOExtraFieldZip64Element.cs
- AuthenticationManager.cs
- OdbcStatementHandle.cs
- UncommonField.cs
- PointConverter.cs
- TextEditorDragDrop.cs
- MeasureData.cs
- DataSvcMapFileSerializer.cs
- XmlStreamStore.cs
- FileIOPermission.cs
- Msec.cs
- ExtensibleClassFactory.cs
- SineEase.cs
- AutomationPropertyInfo.cs
- XmlRawWriterWrapper.cs
- HtmlImage.cs
- ResetableIterator.cs
- ClientBuildManagerCallback.cs
- TextAnchor.cs
- WebPartMovingEventArgs.cs
- FrameworkObject.cs
- ChannelBinding.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- AnnotationComponentChooser.cs
- InstanceDescriptor.cs
- TextDecorationUnitValidation.cs
- TemplateFactory.cs
- SystemIPGlobalProperties.cs
- StringValueSerializer.cs
- XsdBuildProvider.cs
- ChtmlMobileTextWriter.cs
- ZipIOCentralDirectoryFileHeader.cs
- IssuedTokenClientElement.cs
- Translator.cs
- RequestResizeEvent.cs
- StreamResourceInfo.cs
- DataGridViewCellMouseEventArgs.cs
- CodeCatchClause.cs
- ToolboxItemAttribute.cs
- AtomContentProperty.cs
- IntSecurity.cs
- ProcessMonitor.cs
- IdnElement.cs
- httpapplicationstate.cs
- BitmapEffectRenderDataResource.cs
- XmlC14NWriter.cs
- WindowsScroll.cs