Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- AlphaSortedEnumConverter.cs
- TextCompositionEventArgs.cs
- ChildTable.cs
- ClientTarget.cs
- Aggregates.cs
- CategoryGridEntry.cs
- DataBindingCollectionEditor.cs
- Rfc2898DeriveBytes.cs
- InvalidDataContractException.cs
- FontCollection.cs
- ProtectedProviderSettings.cs
- FixedTextPointer.cs
- ImmutableCommunicationTimeouts.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- PropertyToken.cs
- XmlElementList.cs
- ChannelCacheSettings.cs
- StaticFileHandler.cs
- MenuItemStyle.cs
- TrustManager.cs
- Header.cs
- ExpressionCopier.cs
- Hash.cs
- VectorAnimation.cs
- BamlLocalizabilityResolver.cs
- NetMsmqSecurityElement.cs
- PerformanceCounterLib.cs
- _AcceptOverlappedAsyncResult.cs
- DataControlFieldCell.cs
- SolidColorBrush.cs
- AssemblyBuilder.cs
- HtmlInputCheckBox.cs
- SchemaTypeEmitter.cs
- HandlerBase.cs
- EventMappingSettingsCollection.cs
- RuleSettingsCollection.cs
- WinInetCache.cs
- EndpointInfoCollection.cs
- DtdParser.cs
- PersistNameAttribute.cs
- BevelBitmapEffect.cs
- BamlLocalizer.cs
- LeafCellTreeNode.cs
- ApplicationFileParser.cs
- RijndaelManagedTransform.cs
- FirstMatchCodeGroup.cs
- StaticResourceExtension.cs
- OleDbDataAdapter.cs
- RoutedEventValueSerializer.cs
- AssemblyInfo.cs
- DesignColumn.cs
- AdRotatorDesigner.cs
- DesignerHelpers.cs
- CqlGenerator.cs
- FormsAuthenticationUser.cs
- ThreadStateException.cs
- RegistrationContext.cs
- NameValuePair.cs
- TraceHwndHost.cs
- SafeLocalMemHandle.cs
- BitConverter.cs
- PasswordBox.cs
- AutoSizeToolBoxItem.cs
- Main.cs
- CookieProtection.cs
- XPathEmptyIterator.cs
- SmtpClient.cs
- QualificationDataItem.cs
- Schema.cs
- WebAdminConfigurationHelper.cs
- ThemeableAttribute.cs
- WinInet.cs
- IsolatedStorageException.cs
- ControlCachePolicy.cs
- IPAddress.cs
- MouseButton.cs
- TableLayoutPanel.cs
- HostExecutionContextManager.cs
- _NTAuthentication.cs
- ClientRolePrincipal.cs
- KeyProperty.cs
- ContainerVisual.cs
- ADMembershipProvider.cs
- SimpleType.cs
- StorageEntityContainerMapping.cs
- SectionUpdates.cs
- OciHandle.cs
- XamlPointCollectionSerializer.cs
- DbParameterCollectionHelper.cs
- WebPartsPersonalizationAuthorization.cs
- CodeDomSerializationProvider.cs
- DirectoryInfo.cs
- ScriptBehaviorDescriptor.cs
- FamilyTypeface.cs
- Compiler.cs
- ExpressionBuilder.cs
- AttachedPropertyMethodSelector.cs
- AssemblyUtil.cs
- MimeImporter.cs
- SSmlParser.cs