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
- CompilerState.cs
- TdsEnums.cs
- TextPenaltyModule.cs
- TextCharacters.cs
- DynamicResourceExtension.cs
- TabControlEvent.cs
- FormsAuthenticationTicket.cs
- SingletonConnectionReader.cs
- DataRowChangeEvent.cs
- ArrayElementGridEntry.cs
- DynamicRenderer.cs
- EntityParameterCollection.cs
- Sequence.cs
- SingleConverter.cs
- EntityDataSourceChangedEventArgs.cs
- XmlSchemaSimpleContentRestriction.cs
- RichTextBoxAutomationPeer.cs
- SafeArrayRankMismatchException.cs
- Int64AnimationUsingKeyFrames.cs
- ObjectNotFoundException.cs
- MessagePartProtectionMode.cs
- SpAudioStreamWrapper.cs
- DragDrop.cs
- Parallel.cs
- TcpChannelHelper.cs
- messageonlyhwndwrapper.cs
- HeaderedItemsControl.cs
- TdsParser.cs
- ReflectionUtil.cs
- GeneralTransform3DTo2DTo3D.cs
- EntityContainerRelationshipSet.cs
- LiteralDesigner.cs
- MultiBindingExpression.cs
- FormView.cs
- SafePEFileHandle.cs
- HitTestResult.cs
- HandleRef.cs
- TimeManager.cs
- RegexCharClass.cs
- IsolatedStoragePermission.cs
- EncoderParameter.cs
- WebBrowserHelper.cs
- EncoderNLS.cs
- CodeNamespaceCollection.cs
- ReadOnlyHierarchicalDataSourceView.cs
- DragEvent.cs
- Function.cs
- RectangleConverter.cs
- ArgIterator.cs
- DynamicRendererThreadManager.cs
- WebPartActionVerb.cs
- ServiceConfigurationTraceRecord.cs
- TypeToken.cs
- WebPartMovingEventArgs.cs
- PassportAuthentication.cs
- InstanceDescriptor.cs
- AxDesigner.cs
- SerialErrors.cs
- HwndSource.cs
- GridViewSortEventArgs.cs
- PropertyGeneratedEventArgs.cs
- ObjectViewEntityCollectionData.cs
- TemplateXamlParser.cs
- TypeUsage.cs
- GenericArgumentsUpdater.cs
- SafeRegistryHandle.cs
- EditingCoordinator.cs
- DisableDpiAwarenessAttribute.cs
- QueryCursorEventArgs.cs
- TypeConverterMarkupExtension.cs
- PopOutPanel.cs
- MsmqDiagnostics.cs
- KeyConverter.cs
- HyperLink.cs
- RowCache.cs
- _SslStream.cs
- WebContext.cs
- CategoryNameCollection.cs
- SQLConvert.cs
- TypeLibConverter.cs
- ControlUtil.cs
- UrlUtility.cs
- HiddenFieldPageStatePersister.cs
- PrivilegedConfigurationManager.cs
- ProxyFragment.cs
- ToolboxComponentsCreatedEventArgs.cs
- FunctionParameter.cs
- StructuredProperty.cs
- MarkupExtensionReturnTypeAttribute.cs
- ProjectionPathSegment.cs
- AdornerDecorator.cs
- SerializationInfoEnumerator.cs
- DocComment.cs
- DataGridViewUtilities.cs
- XPathScanner.cs
- SettingsProviderCollection.cs
- CriticalHandle.cs
- TypedElement.cs
- XPathAncestorIterator.cs
- CodeComment.cs