Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- DirectoryObjectSecurity.cs
- ValidationErrorInfo.cs
- BoundPropertyEntry.cs
- DataGridBoolColumn.cs
- ObsoleteAttribute.cs
- EventLogTraceListener.cs
- WebPartDeleteVerb.cs
- HyperlinkAutomationPeer.cs
- PageContentCollection.cs
- XmlSerializerVersionAttribute.cs
- LinearKeyFrames.cs
- SqlCommandSet.cs
- COM2IDispatchConverter.cs
- AutoResizedEvent.cs
- PersonalizationAdministration.cs
- RenderOptions.cs
- NetTcpSecurityElement.cs
- DetailsViewUpdatedEventArgs.cs
- PrimaryKeyTypeConverter.cs
- FamilyMap.cs
- PermissionToken.cs
- _NegoStream.cs
- Positioning.cs
- WebPartConnectVerb.cs
- ConfigXmlWhitespace.cs
- AccessKeyManager.cs
- MethodImplAttribute.cs
- SqlConnectionPoolGroupProviderInfo.cs
- ClonableStack.cs
- AnchoredBlock.cs
- ErrorFormatterPage.cs
- _DisconnectOverlappedAsyncResult.cs
- SmtpLoginAuthenticationModule.cs
- TimelineCollection.cs
- SingleStorage.cs
- DbProviderConfigurationHandler.cs
- Win32Native.cs
- DefaultBinder.cs
- MenuDesigner.cs
- WorkflowMarkupSerializationException.cs
- FtpWebRequest.cs
- HTMLTagNameToTypeMapper.cs
- PathFigureCollection.cs
- QilName.cs
- HyperLink.cs
- Color.cs
- WebServiceClientProxyGenerator.cs
- SchemaExporter.cs
- HttpConfigurationSystem.cs
- HandleRef.cs
- SqlGatherConsumedAliases.cs
- CheckBox.cs
- TextAutomationPeer.cs
- MessageHeaderAttribute.cs
- Semaphore.cs
- XmlNode.cs
- IsolatedStorageException.cs
- RelationshipSet.cs
- CorrelationTokenInvalidatedHandler.cs
- TreeWalkHelper.cs
- CharAnimationBase.cs
- SafeWaitHandle.cs
- columnmapfactory.cs
- EncryptedData.cs
- ImageAnimator.cs
- BrowserTree.cs
- UnmanagedMemoryStreamWrapper.cs
- DragDeltaEventArgs.cs
- SynchronousChannelMergeEnumerator.cs
- HMACSHA256.cs
- Message.cs
- ConstNode.cs
- HelpFileFileNameEditor.cs
- ErrorActivity.cs
- QilCloneVisitor.cs
- BaseResourcesBuildProvider.cs
- PinnedBufferMemoryStream.cs
- WSDualHttpSecurity.cs
- TargetControlTypeCache.cs
- ObjectSet.cs
- ProtectedConfiguration.cs
- PauseStoryboard.cs
- MonthCalendar.cs
- DataSourceView.cs
- ThreadAttributes.cs
- PersonalizationEntry.cs
- HScrollBar.cs
- ToolboxComponentsCreatedEventArgs.cs
- IUnknownConstantAttribute.cs
- PointCollection.cs
- OdbcPermission.cs
- ModuleElement.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- TextBlock.cs
- EntitySetBase.cs
- ObjectTag.cs
- FormattedText.cs
- BitmapEffectInputConnector.cs
- AssociatedControlConverter.cs
- DataColumnMapping.cs