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 / Common / CommandTrees / DbModificationCommandTree.cs / 1 / DbModificationCommandTree.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....], [....]
//---------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Data.Metadata.Edm;
using System.Data.Common.CommandTrees.Internal;
using System.Data.Common.Utils;
namespace System.Data.Common.CommandTrees
{
///
/// Represents a DML operation expressed as a canonical command tree
///
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "Db")]
public abstract class DbModificationCommandTree : DbCommandTree
{
private DbExpressionBinding _target;
internal DbModificationCommandTree(MetadataWorkspace metadata, DataSpace dataSpace)
: base(metadata, dataSpace) { }
///
/// Gets the that specifies the target table for the DML operation.
///
/// The expression binding is null
/// The expression binding is associated with a different command tree
public DbExpressionBinding Target
{
get
{
return _target;
}
internal set
{
using (new EntityBid.ScopeAuto(" %d#", this.ObjectId))
{
DbExpressionBinding.Check("Target", value, this);
EntityBid.Trace(" %d#, value.VariableName='%ls'\n", this.ObjectId, value.VariableName);
EntityBid.Trace(" %d#, value.DbExpression=%d#, %d{cqt.DbExpressionKind}\n", this.ObjectId, DbExpression.GetObjectId(value.Expression), DbExpression.GetExpressionKind(value.Expression));
_target = value;
this.SetModified();
}
}
}
///
/// Returns true if this modification command returns a reader (for instance, to return server generated values)
///
internal abstract bool HasReader
{
get;
}
internal override void DumpStructure(ExpressionDumper dumper)
{
if (this.Target != null)
{
dumper.Dump(this.Target, "Target");
}
}
}
}
// 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.Data.Metadata.Edm;
using System.Data.Common.CommandTrees.Internal;
using System.Data.Common.Utils;
namespace System.Data.Common.CommandTrees
{
///
/// Represents a DML operation expressed as a canonical command tree
///
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "Db")]
public abstract class DbModificationCommandTree : DbCommandTree
{
private DbExpressionBinding _target;
internal DbModificationCommandTree(MetadataWorkspace metadata, DataSpace dataSpace)
: base(metadata, dataSpace) { }
///
/// Gets the that specifies the target table for the DML operation.
///
/// The expression binding is null
/// The expression binding is associated with a different command tree
public DbExpressionBinding Target
{
get
{
return _target;
}
internal set
{
using (new EntityBid.ScopeAuto(" %d#", this.ObjectId))
{
DbExpressionBinding.Check("Target", value, this);
EntityBid.Trace(" %d#, value.VariableName='%ls'\n", this.ObjectId, value.VariableName);
EntityBid.Trace(" %d#, value.DbExpression=%d#, %d{cqt.DbExpressionKind}\n", this.ObjectId, DbExpression.GetObjectId(value.Expression), DbExpression.GetExpressionKind(value.Expression));
_target = value;
this.SetModified();
}
}
}
///
/// Returns true if this modification command returns a reader (for instance, to return server generated values)
///
internal abstract bool HasReader
{
get;
}
internal override void DumpStructure(ExpressionDumper dumper)
{
if (this.Target != null)
{
dumper.Dump(this.Target, "Target");
}
}
}
}
// 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
- X509Certificate2.cs
- SevenBitStream.cs
- Command.cs
- PresentationTraceSources.cs
- OdbcCommandBuilder.cs
- DiscoveryMessageSequence.cs
- AdornerLayer.cs
- RuntimeConfigLKG.cs
- ServerType.cs
- DataObject.cs
- IdentityNotMappedException.cs
- StylusTouchDevice.cs
- OdbcConnection.cs
- DESCryptoServiceProvider.cs
- UInt64.cs
- IdentityHolder.cs
- SqlDataAdapter.cs
- SurrogateSelector.cs
- BuildManagerHost.cs
- DataGridCommandEventArgs.cs
- ApplicationDirectory.cs
- FontInfo.cs
- SerializationSectionGroup.cs
- WebPartZoneDesigner.cs
- UserMapPath.cs
- _OSSOCK.cs
- WinEventHandler.cs
- TextEncodedRawTextWriter.cs
- UserCancellationException.cs
- Application.cs
- Transactions.cs
- SnapLine.cs
- SoapParser.cs
- HttpNamespaceReservationInstallComponent.cs
- TextDecorationCollection.cs
- PositiveTimeSpanValidatorAttribute.cs
- WindowsToolbarAsMenu.cs
- OneOfElement.cs
- dataobject.cs
- DocumentXPathNavigator.cs
- GlobalAclOperationRequirement.cs
- UnsafeNativeMethods.cs
- XmlILStorageConverter.cs
- RemotingSurrogateSelector.cs
- ActivitiesCollection.cs
- SelectionProviderWrapper.cs
- SqlClientFactory.cs
- RawMouseInputReport.cs
- Int64Converter.cs
- ThrowHelper.cs
- ImportOptions.cs
- HopperCache.cs
- SignatureGenerator.cs
- HttpCacheParams.cs
- ToolBarButtonDesigner.cs
- RenderCapability.cs
- SqlCaseSimplifier.cs
- IntPtr.cs
- WebResponse.cs
- Cursor.cs
- MSHTMLHostUtil.cs
- SerializationFieldInfo.cs
- SystemColorTracker.cs
- BindableTemplateBuilder.cs
- SearchForVirtualItemEventArgs.cs
- Latin1Encoding.cs
- ImageEditor.cs
- TextPointerBase.cs
- ItemPager.cs
- AppDomainUnloadedException.cs
- DataMisalignedException.cs
- SqlFileStream.cs
- DesignUtil.cs
- InvalidChannelBindingException.cs
- SelectionGlyphBase.cs
- ErrorFormatterPage.cs
- XmlSchemas.cs
- Typography.cs
- ButtonChrome.cs
- DataRowComparer.cs
- FormViewInsertedEventArgs.cs
- SafeFileHandle.cs
- OleAutBinder.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- SqlClientPermission.cs
- formatstringdialog.cs
- TransformedBitmap.cs
- CultureInfo.cs
- RC2.cs
- DataBoundLiteralControl.cs
- GridViewRowPresenter.cs
- Codec.cs
- PointHitTestParameters.cs
- StringBlob.cs
- Comparer.cs
- MeasureItemEvent.cs
- TimeoutValidationAttribute.cs
- WebBrowserNavigatedEventHandler.cs
- DbDeleteCommandTree.cs
- TransformProviderWrapper.cs