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 / Query / PlanCompiler / CommandPlan.cs / 1 / CommandPlan.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
//---------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Data.Common;
using md = System.Data.Metadata.Edm;
using cqt = System.Data.Common.CommandTrees;
//using System.Diagnostics; // Please use PlanCompiler.Assert instead of Debug.Assert in this class...
//
// A CommandPlan represents the plan for a query.
//
namespace System.Data.Query.PlanCompiler
{
#region CommandInfo
///
/// Captures information about a single provider command
///
internal sealed class ProviderCommandInfo
{
#region public apis
///
/// Internal methods to get the command tree
///
internal cqt.DbCommandTree CommandTree
{
get { return _commandTree; }
}
#endregion
#region private state
private cqt.DbCommandTree _commandTree;
private ProviderCommandInfo _parent;
private List _children;
#endregion
#region constructors
///
/// Internal constructor for a ProviderCommandInfo object
///
/// command tree for the provider command
/// children command infos
internal ProviderCommandInfo(cqt.DbCommandTree commandTree,
List children)
{
_commandTree = commandTree;
_children = children;
if (_children == null)
{
_children = new List();
}
foreach (ProviderCommandInfo child in _children)
{
child._parent = this;
}
}
#endregion
}
#endregion
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
//---------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Data.Common;
using md = System.Data.Metadata.Edm;
using cqt = System.Data.Common.CommandTrees;
//using System.Diagnostics; // Please use PlanCompiler.Assert instead of Debug.Assert in this class...
//
// A CommandPlan represents the plan for a query.
//
namespace System.Data.Query.PlanCompiler
{
#region CommandInfo
///
/// Captures information about a single provider command
///
internal sealed class ProviderCommandInfo
{
#region public apis
///
/// Internal methods to get the command tree
///
internal cqt.DbCommandTree CommandTree
{
get { return _commandTree; }
}
#endregion
#region private state
private cqt.DbCommandTree _commandTree;
private ProviderCommandInfo _parent;
private List _children;
#endregion
#region constructors
///
/// Internal constructor for a ProviderCommandInfo object
///
/// command tree for the provider command
/// children command infos
internal ProviderCommandInfo(cqt.DbCommandTree commandTree,
List children)
{
_commandTree = commandTree;
_children = children;
if (_children == null)
{
_children = new List();
}
foreach (ProviderCommandInfo child in _children)
{
child._parent = this;
}
}
#endregion
}
#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
- RegionData.cs
- EntityType.cs
- PropertyConverter.cs
- AsymmetricSignatureDeformatter.cs
- X509UI.cs
- Compress.cs
- QueryAccessibilityHelpEvent.cs
- LinkedResource.cs
- HotSpotCollection.cs
- SupportsEventValidationAttribute.cs
- SimpleTextLine.cs
- PositiveTimeSpanValidator.cs
- DataProtectionSecurityStateEncoder.cs
- TypographyProperties.cs
- FaultReason.cs
- WCFBuildProvider.cs
- WindowsIPAddress.cs
- Polygon.cs
- OleDbConnection.cs
- DataPagerFieldItem.cs
- BinaryFormatter.cs
- RuntimeConfigurationRecord.cs
- DbException.cs
- ImageField.cs
- XmlSchemaObjectCollection.cs
- ImageListUtils.cs
- ExpressionVisitorHelpers.cs
- ServiceSecurityAuditBehavior.cs
- CharUnicodeInfo.cs
- XmlSchemaComplexContent.cs
- ServiceParser.cs
- EntityViewGenerationConstants.cs
- CacheModeConverter.cs
- relpropertyhelper.cs
- DocumentOrderQuery.cs
- DSACryptoServiceProvider.cs
- DataRelation.cs
- Application.cs
- ObjectSet.cs
- Registry.cs
- BamlTreeMap.cs
- OdbcDataAdapter.cs
- ImplicitInputBrush.cs
- ButtonPopupAdapter.cs
- AttributeEmitter.cs
- AuthenticationService.cs
- InvalidPropValue.cs
- PowerStatus.cs
- DesignerLoader.cs
- MethodSignatureGenerator.cs
- ClickablePoint.cs
- DynamicDataResources.Designer.cs
- RegexCaptureCollection.cs
- WorkflowApplicationAbortedEventArgs.cs
- EntityContainerAssociationSet.cs
- Polyline.cs
- FixedSOMLineRanges.cs
- SqlConnectionString.cs
- WindowsIdentity.cs
- ConnectionManagementElement.cs
- EntityDataSourceQueryBuilder.cs
- DataSourceCollectionBase.cs
- OleDbRowUpdatingEvent.cs
- GeneratedContractType.cs
- ToolStripDropDownItemDesigner.cs
- CollectionView.cs
- sqlcontext.cs
- ImageMapEventArgs.cs
- MachineKeyValidationConverter.cs
- TypedRowGenerator.cs
- SizeConverter.cs
- FamilyCollection.cs
- MediaCommands.cs
- SessionSymmetricTransportSecurityProtocolFactory.cs
- ImplicitInputBrush.cs
- MdiWindowListStrip.cs
- AncestorChangedEventArgs.cs
- ConnectionString.cs
- DisposableCollectionWrapper.cs
- HttpListenerContext.cs
- XamlSerializationHelper.cs
- IconBitmapDecoder.cs
- DefaultPrintController.cs
- DataGridViewComboBoxColumn.cs
- DataGridViewButtonCell.cs
- DrawingBrush.cs
- Internal.cs
- CompiledRegexRunnerFactory.cs
- DecimalConverter.cs
- FileDialog.cs
- SequenceDesigner.cs
- TemplateBindingExpressionConverter.cs
- InkPresenter.cs
- FacetValueContainer.cs
- DbTypeMap.cs
- PropertyTabAttribute.cs
- HtmlTextArea.cs
- ExchangeUtilities.cs
- HttpProcessUtility.cs
- TopClause.cs