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
- TraceHwndHost.cs
- ListViewItemMouseHoverEvent.cs
- xdrvalidator.cs
- DependencyPropertyConverter.cs
- SelectionRangeConverter.cs
- OptionUsage.cs
- RoleGroup.cs
- X509CertificateCollection.cs
- Int32CAMarshaler.cs
- DbMetaDataColumnNames.cs
- XhtmlTextWriter.cs
- BamlBinaryWriter.cs
- XslAstAnalyzer.cs
- FixedDocument.cs
- CustomErrorCollection.cs
- ResourceLoader.cs
- MenuRenderer.cs
- RectangleHotSpot.cs
- SecurityTokenReferenceStyle.cs
- MonthCalendarDesigner.cs
- Deflater.cs
- WebPartPersonalization.cs
- CheckBoxField.cs
- WindowsStartMenu.cs
- XamlTreeBuilderBamlRecordWriter.cs
- SafeFileMappingHandle.cs
- XmlNodeList.cs
- ResXResourceSet.cs
- ModifierKeysConverter.cs
- InteropDesigner.xaml.cs
- Behavior.cs
- TimeSpanValidator.cs
- EncryptedXml.cs
- TextElementAutomationPeer.cs
- ToolStripSeparatorRenderEventArgs.cs
- TimeSpanValidator.cs
- XamlRtfConverter.cs
- VectorAnimationBase.cs
- CallSiteOps.cs
- PolicyAssertionCollection.cs
- XmlSchemaComplexType.cs
- PageRanges.cs
- FileController.cs
- Expander.cs
- PageContentAsyncResult.cs
- AutomationAttributeInfo.cs
- WriteLineDesigner.xaml.cs
- TreeViewCancelEvent.cs
- Rotation3DKeyFrameCollection.cs
- BinHexEncoding.cs
- PackageRelationshipCollection.cs
- MessageDesigner.cs
- LogArchiveSnapshot.cs
- TextOnlyOutput.cs
- HttpServerChannel.cs
- ContextMenuService.cs
- SimplePropertyEntry.cs
- ServiceDeploymentInfo.cs
- CancellationTokenRegistration.cs
- DocumentApplication.cs
- DecodeHelper.cs
- AsymmetricKeyExchangeDeformatter.cs
- ResourceExpressionBuilder.cs
- CqlIdentifiers.cs
- BoundPropertyEntry.cs
- SettingsPropertyWrongTypeException.cs
- Annotation.cs
- CodeExpressionStatement.cs
- InheritedPropertyChangedEventArgs.cs
- HTTPRemotingHandler.cs
- DefaultTraceListener.cs
- LinkLabelLinkClickedEvent.cs
- IImplicitResourceProvider.cs
- SelfIssuedAuthAsymmetricKey.cs
- ProfilePropertySettingsCollection.cs
- WebBrowser.cs
- ListContractAdapter.cs
- _UriSyntax.cs
- CollectionDataContract.cs
- SoapExtensionTypeElement.cs
- MouseWheelEventArgs.cs
- EdmConstants.cs
- SwitchAttribute.cs
- DelegatedStream.cs
- HGlobalSafeHandle.cs
- HashFinalRequest.cs
- FeatureAttribute.cs
- webeventbuffer.cs
- LabelAutomationPeer.cs
- ResourceSet.cs
- SByte.cs
- LeftCellWrapper.cs
- VectorCollectionValueSerializer.cs
- User.cs
- ConfigXmlWhitespace.cs
- TypeConvertions.cs
- IncrementalHitTester.cs
- PasswordRecovery.cs
- TriggerCollection.cs
- RecognizeCompletedEventArgs.cs