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
- StackBuilderSink.cs
- MarkupCompilePass2.cs
- XmlEnumAttribute.cs
- CodeArrayCreateExpression.cs
- TimeSpanOrInfiniteValidator.cs
- DictionaryEntry.cs
- PolyLineSegment.cs
- SingleKeyFrameCollection.cs
- OperatingSystem.cs
- XmlMembersMapping.cs
- DBDataPermissionAttribute.cs
- OdbcDataReader.cs
- SelectionUIHandler.cs
- WindowsSysHeader.cs
- ComponentFactoryHelpers.cs
- TraceHandlerErrorFormatter.cs
- Variable.cs
- TypeSystemHelpers.cs
- RoleService.cs
- XmlDataCollection.cs
- ImageEditor.cs
- EditBehavior.cs
- RunWorkerCompletedEventArgs.cs
- InteropAutomationProvider.cs
- ExpressionWriter.cs
- ImageSource.cs
- StringReader.cs
- WebExceptionStatus.cs
- WorkflowMessageEventArgs.cs
- _TimerThread.cs
- ExtenderControl.cs
- QuaternionKeyFrameCollection.cs
- Brush.cs
- TextElementAutomationPeer.cs
- ContractTypeNameCollection.cs
- EventSourceCreationData.cs
- UIElementAutomationPeer.cs
- AlgoModule.cs
- ImageSourceConverter.cs
- FormsAuthenticationTicket.cs
- SessionIDManager.cs
- XmlCountingReader.cs
- RadioButtonBaseAdapter.cs
- XsltException.cs
- AssociationTypeEmitter.cs
- SafeRightsManagementHandle.cs
- InfoCardKeyedHashAlgorithm.cs
- DataViewSettingCollection.cs
- oledbmetadatacollectionnames.cs
- XPathDocument.cs
- mil_commands.cs
- PtsPage.cs
- DisplayInformation.cs
- ParallelEnumerable.cs
- WebConfigurationHost.cs
- EtwTrackingParticipant.cs
- DayRenderEvent.cs
- Dynamic.cs
- BitmapEffectGroup.cs
- AppDomainFactory.cs
- MediaElement.cs
- DocumentViewerBase.cs
- FixedTextContainer.cs
- DataShape.cs
- ObjectKeyFrameCollection.cs
- Rotation3D.cs
- formatstringdialog.cs
- WorkflowPersistenceService.cs
- BufferedWebEventProvider.cs
- ToolStripContentPanelRenderEventArgs.cs
- sqlinternaltransaction.cs
- FacetValues.cs
- Listbox.cs
- FormsAuthenticationTicket.cs
- LiteralControl.cs
- EntityProxyFactory.cs
- VisemeEventArgs.cs
- DataRecordObjectView.cs
- BaseTransportHeaders.cs
- TraceFilter.cs
- NumericExpr.cs
- HighlightComponent.cs
- ExtenderProvidedPropertyAttribute.cs
- DockPanel.cs
- DataBoundControlAdapter.cs
- ByteViewer.cs
- PauseStoryboard.cs
- UnionCqlBlock.cs
- Polygon.cs
- SamlDoNotCacheCondition.cs
- ToolStripRenderer.cs
- OdbcParameter.cs
- WebPartConnectionsEventArgs.cs
- ResourceDictionary.cs
- ProfileBuildProvider.cs
- QilReference.cs
- AutomationElementCollection.cs
- ListViewItemCollectionEditor.cs
- PropertyDescriptorCollection.cs
- CalendarDateChangedEventArgs.cs