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
- ConfigXmlComment.cs
- ImageBrush.cs
- RowParagraph.cs
- ScriptReference.cs
- UniqueEventHelper.cs
- SessionParameter.cs
- XomlDesignerLoader.cs
- BitmapEffectDrawingContextState.cs
- AssemblyInfo.cs
- BaseValidatorDesigner.cs
- BamlVersionHeader.cs
- FrameworkElement.cs
- RemotingSurrogateSelector.cs
- Expressions.cs
- DnsPermission.cs
- QueryInterceptorAttribute.cs
- MsmqBindingBase.cs
- ExponentialEase.cs
- GlobalProxySelection.cs
- IndexedGlyphRun.cs
- FixedSOMFixedBlock.cs
- Timeline.cs
- ItemsPresenter.cs
- DataGridItemAttachedStorage.cs
- ToggleButton.cs
- RuntimeArgumentHandle.cs
- GC.cs
- CodeMemberField.cs
- EventSourceCreationData.cs
- EncoderReplacementFallback.cs
- DbExpressionBuilder.cs
- OptimizedTemplateContentHelper.cs
- WebPartCloseVerb.cs
- VirtualPath.cs
- AttributeEmitter.cs
- WindowsListView.cs
- ViewBase.cs
- CapiSafeHandles.cs
- ProxyGenerationError.cs
- Misc.cs
- OLEDB_Util.cs
- TreeViewCancelEvent.cs
- GridItemCollection.cs
- SlotInfo.cs
- TableStyle.cs
- XmlNamespaceDeclarationsAttribute.cs
- IteratorDescriptor.cs
- WebSysDefaultValueAttribute.cs
- GeneralTransform3DGroup.cs
- NavigatingCancelEventArgs.cs
- TableCellCollection.cs
- TreeView.cs
- CommandValueSerializer.cs
- LogEntryHeaderSerializer.cs
- EntitySqlQueryBuilder.cs
- Screen.cs
- RenderingBiasValidation.cs
- SafeMILHandleMemoryPressure.cs
- WpfSharedBamlSchemaContext.cs
- ApplicationServicesHostFactory.cs
- BamlResourceSerializer.cs
- SizeAnimationUsingKeyFrames.cs
- Win32Native.cs
- HiddenFieldPageStatePersister.cs
- ImageMapEventArgs.cs
- BasicCommandTreeVisitor.cs
- UInt16.cs
- DataGridAutomationPeer.cs
- X509SecurityToken.cs
- TimelineCollection.cs
- ScriptControl.cs
- PrintDocument.cs
- ExceptionUtility.cs
- QilTypeChecker.cs
- CollectionsUtil.cs
- Evidence.cs
- DrawingGroup.cs
- TypedColumnHandler.cs
- NamedPipeActivation.cs
- TimeSpanFormat.cs
- SelectionService.cs
- CultureTable.cs
- SspiWrapper.cs
- DefaultClaimSet.cs
- OutputScopeManager.cs
- DataGridViewRowsRemovedEventArgs.cs
- WebContentFormatHelper.cs
- NegotiateStream.cs
- SqlClientPermission.cs
- CodeTypeConstructor.cs
- TrackBarRenderer.cs
- HttpTransportManager.cs
- PropertyEmitterBase.cs
- PersonalizationStateInfo.cs
- ISSmlParser.cs
- sitestring.cs
- RtfToXamlReader.cs
- RequestResizeEvent.cs
- ContainerParaClient.cs
- RTLAwareMessageBox.cs