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
- DictionaryEntry.cs
- BaseServiceProvider.cs
- XmlAttributeCache.cs
- MetadataCollection.cs
- BackStopAuthenticationModule.cs
- Literal.cs
- PrintDialogException.cs
- DomNameTable.cs
- AsyncCompletedEventArgs.cs
- DetailsViewDesigner.cs
- PerformanceCounterPermission.cs
- TextParagraph.cs
- SecurityElement.cs
- WaitHandle.cs
- CriticalExceptions.cs
- StorageTypeMapping.cs
- MarginCollapsingState.cs
- Repeater.cs
- ToolStripTemplateNode.cs
- DiscoveryRequestHandler.cs
- WindowsFormsSynchronizationContext.cs
- TextRunProperties.cs
- UnsafePeerToPeerMethods.cs
- ChangeInterceptorAttribute.cs
- DbXmlEnabledProviderManifest.cs
- GradientStop.cs
- DataObjectSettingDataEventArgs.cs
- BaseUriWithWildcard.cs
- MetabaseSettingsIis7.cs
- WebReferencesBuildProvider.cs
- DesignerResources.cs
- Viewport2DVisual3D.cs
- SystemIPInterfaceProperties.cs
- NameValueCache.cs
- PropertyDescriptorCollection.cs
- SqlNodeAnnotations.cs
- Events.cs
- CodeAttachEventStatement.cs
- ObjectReaderCompiler.cs
- SurrogateChar.cs
- PrimaryKeyTypeConverter.cs
- OleAutBinder.cs
- ThreadAbortException.cs
- QilPatternFactory.cs
- DrawingCollection.cs
- SynchronizationContextHelper.cs
- ErrorHandler.cs
- QueryConverter.cs
- ConnectionConsumerAttribute.cs
- SetterBaseCollection.cs
- OdbcErrorCollection.cs
- SafeIUnknown.cs
- PackUriHelper.cs
- BlurBitmapEffect.cs
- QueryCacheManager.cs
- UnmanagedMemoryStreamWrapper.cs
- QueryStringParameter.cs
- TypeConstant.cs
- ParameterBuilder.cs
- RuntimeConfigurationRecord.cs
- InfoCardTraceRecord.cs
- WriteableBitmap.cs
- SafeProcessHandle.cs
- RegexGroupCollection.cs
- XamlDesignerSerializationManager.cs
- CodeAttributeDeclarationCollection.cs
- Match.cs
- TextSchema.cs
- SiteMapDataSource.cs
- TypeConstant.cs
- InvokeProviderWrapper.cs
- InternalRelationshipCollection.cs
- Utility.cs
- TypeContext.cs
- RoutingTable.cs
- DefaultBindingPropertyAttribute.cs
- WindowsStatusBar.cs
- FontSourceCollection.cs
- DiscreteKeyFrames.cs
- SaveFileDialog.cs
- WebControlsSection.cs
- MultiBinding.cs
- NativeMethodsOther.cs
- SpellerStatusTable.cs
- DynamicVirtualDiscoSearcher.cs
- X509ThumbprintKeyIdentifierClause.cs
- SqlCommandSet.cs
- GuidConverter.cs
- ProxySimple.cs
- BinaryMessageEncodingElement.cs
- ImmComposition.cs
- BitmapPalette.cs
- HttpContext.cs
- DateTimeConstantAttribute.cs
- Claim.cs
- LingerOption.cs
- CFGGrammar.cs
- DetailsViewInsertEventArgs.cs
- Merger.cs
- InvokeBase.cs