Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Common / CommandTrees / DbModificationCommandTree.cs / 2 / 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
- TimeSpanHelper.cs
- XmlSchemaAll.cs
- XmlLinkedNode.cs
- OdbcConnectionPoolProviderInfo.cs
- RelationshipEnd.cs
- XsltArgumentList.cs
- ValidationException.cs
- CategoriesDocumentFormatter.cs
- NTAccount.cs
- CompressEmulationStream.cs
- ArrowControl.xaml.cs
- ElapsedEventArgs.cs
- ProxyWebPartManager.cs
- ClientScriptManagerWrapper.cs
- PrintControllerWithStatusDialog.cs
- NativeConfigurationLoader.cs
- _CacheStreams.cs
- EntitySet.cs
- EntityCollection.cs
- DBDataPermissionAttribute.cs
- AxHost.cs
- ServiceEndpointElement.cs
- SimpleBitVector32.cs
- DataExpression.cs
- SamlAuthorityBinding.cs
- ServiceModelConfigurationSectionGroup.cs
- StorageSetMapping.cs
- QilParameter.cs
- NonValidatingSecurityTokenAuthenticator.cs
- storepermissionattribute.cs
- thaishape.cs
- PropertyInformation.cs
- InstanceDataCollectionCollection.cs
- X509CertificateStore.cs
- NativeMethods.cs
- PenCursorManager.cs
- TimeoutException.cs
- SrgsItemList.cs
- XPathNodeIterator.cs
- BoundsDrawingContextWalker.cs
- ErrorReporting.cs
- MemoryStream.cs
- DependencyObjectType.cs
- RegexWriter.cs
- ToolStripDropDownButton.cs
- UniqueEventHelper.cs
- TCPClient.cs
- ConcurrentDictionary.cs
- basemetadatamappingvisitor.cs
- ControlEvent.cs
- ColorConverter.cs
- TextDecoration.cs
- _IPv6Address.cs
- TreeViewCancelEvent.cs
- StyleSheet.cs
- HostedNamedPipeTransportManager.cs
- XmlSchemaIdentityConstraint.cs
- SmiMetaData.cs
- BaseParagraph.cs
- Missing.cs
- RawUIStateInputReport.cs
- EditorAttribute.cs
- OpenFileDialog.cs
- XmlSchemaGroupRef.cs
- DataGridItemCollection.cs
- UnorderedHashRepartitionStream.cs
- ManagementDateTime.cs
- TargetInvocationException.cs
- BackStopAuthenticationModule.cs
- Interlocked.cs
- AbstractExpressions.cs
- PropertyReference.cs
- DataException.cs
- CompleteWizardStep.cs
- GacUtil.cs
- PerspectiveCamera.cs
- PrtCap_Reader.cs
- BindingObserver.cs
- ZipIOCentralDirectoryBlock.cs
- DbParameterHelper.cs
- XmlConvert.cs
- PopOutPanel.cs
- OutputCacheSettingsSection.cs
- Label.cs
- CompilationUnit.cs
- WebPartEventArgs.cs
- TreeNodeStyleCollection.cs
- localization.cs
- QuotedPrintableStream.cs
- XmlNamespaceMapping.cs
- RuntimeHelpers.cs
- StylusPointCollection.cs
- LookupNode.cs
- ContentOnlyMessage.cs
- KeysConverter.cs
- EndPoint.cs
- DbProviderFactories.cs
- StringReader.cs
- LabelEditEvent.cs
- ColorTransform.cs