Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Query / PlanCompiler / CommandPlan.cs / 2 / 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
- Propagator.Evaluator.cs
- DockProviderWrapper.cs
- bidPrivateBase.cs
- IBuiltInEvidence.cs
- OracleRowUpdatingEventArgs.cs
- _AutoWebProxyScriptHelper.cs
- WebBrowserUriTypeConverter.cs
- SEHException.cs
- SqlDataReader.cs
- MenuItemCollectionEditorDialog.cs
- MobileControl.cs
- ButtonStandardAdapter.cs
- DbConnectionHelper.cs
- PresentationTraceSources.cs
- WebPartAddingEventArgs.cs
- ConfigurationStrings.cs
- ContextMenuService.cs
- XmlTextEncoder.cs
- ListBoxAutomationPeer.cs
- SortedDictionary.cs
- GroupStyle.cs
- WindowsFormsHost.cs
- MemberCollection.cs
- FilterException.cs
- MessageQueueEnumerator.cs
- ComponentEvent.cs
- SchemaLookupTable.cs
- SqlConnection.cs
- XmlSchemaNotation.cs
- FrameworkContextData.cs
- SqlRowUpdatedEvent.cs
- PerSessionInstanceContextProvider.cs
- QilList.cs
- LongValidator.cs
- WebEventTraceProvider.cs
- RowUpdatingEventArgs.cs
- Point3DConverter.cs
- ChannelServices.cs
- WsdlWriter.cs
- DatagridviewDisplayedBandsData.cs
- XmlIlVisitor.cs
- CounterSample.cs
- COM2PictureConverter.cs
- EnumUnknown.cs
- CollectionChangeEventArgs.cs
- BlobPersonalizationState.cs
- XmlParserContext.cs
- CodeGeneratorOptions.cs
- NotSupportedException.cs
- ResourceDescriptionAttribute.cs
- EndPoint.cs
- ExceptionAggregator.cs
- GeneralTransform.cs
- BamlTreeMap.cs
- PhonemeEventArgs.cs
- IdnElement.cs
- NativeWindow.cs
- SymLanguageVendor.cs
- latinshape.cs
- PublisherMembershipCondition.cs
- HtmlInputSubmit.cs
- BooleanStorage.cs
- HtmlUtf8RawTextWriter.cs
- OdbcPermission.cs
- SymbolEqualComparer.cs
- OdbcError.cs
- AxisAngleRotation3D.cs
- PersonalizationProviderCollection.cs
- XPathParser.cs
- PhoneCall.cs
- QuotedStringFormatReader.cs
- OperandQuery.cs
- EncoderNLS.cs
- CodeValidator.cs
- _TimerThread.cs
- TextRangeEditTables.cs
- SafeProcessHandle.cs
- TypeUtil.cs
- RequestBringIntoViewEventArgs.cs
- PointCollectionValueSerializer.cs
- PageHandlerFactory.cs
- DeclarativeCatalogPart.cs
- HtmlControlPersistable.cs
- ServiceActivationException.cs
- ItemContainerPattern.cs
- EncodingInfo.cs
- ChildDocumentBlock.cs
- SecurityDescriptor.cs
- BitmapScalingModeValidation.cs
- MembershipUser.cs
- NativeMethods.cs
- iisPickupDirectory.cs
- SqlProviderUtilities.cs
- AccessibleObject.cs
- LiteralControl.cs
- CommandBinding.cs
- TextPointerBase.cs
- FocusWithinProperty.cs
- WebZone.cs
- Operand.cs