Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / CommandTrees / DbDeleteCommandTree.cs / 1305376 / DbDeleteCommandTree.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....], [....] // @backupOwner [....] //--------------------------------------------------------------------- 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 single row delete operation expressed as a canonical command tree. /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "Db")] public sealed class DbDeleteCommandTree : DbModificationCommandTree { private readonly DbExpression _predicate; internal DbDeleteCommandTree(MetadataWorkspace metadata, DataSpace dataSpace, DbExpressionBinding target, DbExpression predicate) : base(metadata, dataSpace, target) { EntityUtil.CheckArgumentNull(predicate, "predicate"); this._predicate = predicate; } ////// Gets an ///that specifies the predicate used to determine which members of the target collection should be deleted. /// /// The predicate can include only the following elements: /// public DbExpression Predicate { get { return _predicate; } } internal override DbCommandTreeKind CommandTreeKind { get { return DbCommandTreeKind.Delete; } } internal override bool HasReader { get { // a delete command never returns server-gen values, and // therefore never returns a reader return false; } } internal override void DumpStructure(ExpressionDumper dumper) { base.DumpStructure(dumper); if (this.Predicate != null) { dumper.Dump(this.Predicate, "Predicate"); } } internal override string PrintTree(ExpressionPrinter printer) { return printer.Print(this); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- /////
///- Equality expression
///- Constant expression
///- IsNull expression
///- Property expression
///- Reference expression to the target
///- And expression
///- Or expression
///- Not expression
///// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....], [....] // @backupOwner [....] //--------------------------------------------------------------------- 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 single row delete operation expressed as a canonical command tree. /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "Db")] public sealed class DbDeleteCommandTree : DbModificationCommandTree { private readonly DbExpression _predicate; internal DbDeleteCommandTree(MetadataWorkspace metadata, DataSpace dataSpace, DbExpressionBinding target, DbExpression predicate) : base(metadata, dataSpace, target) { EntityUtil.CheckArgumentNull(predicate, "predicate"); this._predicate = predicate; } ////// Gets an ///that specifies the predicate used to determine which members of the target collection should be deleted. /// /// The predicate can include only the following elements: /// public DbExpression Predicate { get { return _predicate; } } internal override DbCommandTreeKind CommandTreeKind { get { return DbCommandTreeKind.Delete; } } internal override bool HasReader { get { // a delete command never returns server-gen values, and // therefore never returns a reader return false; } } internal override void DumpStructure(ExpressionDumper dumper) { base.DumpStructure(dumper); if (this.Predicate != null) { dumper.Dump(this.Predicate, "Predicate"); } } internal override string PrintTree(ExpressionPrinter printer) { return printer.Print(this); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.///
///- Equality expression
///- Constant expression
///- IsNull expression
///- Property expression
///- Reference expression to the target
///- And expression
///- Or expression
///- Not expression
///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MenuCommand.cs
- CfgRule.cs
- ECDsa.cs
- SoapExtensionStream.cs
- AllMembershipCondition.cs
- ScrollBar.cs
- FrameworkElement.cs
- SurrogateEncoder.cs
- ServiceHttpModule.cs
- MtomMessageEncoder.cs
- TreeNodeCollection.cs
- Win32PrintDialog.cs
- TableItemStyle.cs
- SimplePropertyEntry.cs
- BasicKeyConstraint.cs
- loginstatus.cs
- OuterGlowBitmapEffect.cs
- DotExpr.cs
- DataSysAttribute.cs
- BaseDataListActionList.cs
- GradientStopCollection.cs
- Repeater.cs
- SelectionHighlightInfo.cs
- XmlSchemaType.cs
- Int16Animation.cs
- ConfigXmlCDataSection.cs
- OleDbConnection.cs
- SingleConverter.cs
- DataFormats.cs
- UnSafeCharBuffer.cs
- BitmapImage.cs
- SizeChangedEventArgs.cs
- ObjectTag.cs
- DropShadowBitmapEffect.cs
- LockRecoveryTask.cs
- WebScriptClientGenerator.cs
- ToggleProviderWrapper.cs
- AdRotator.cs
- CollectionViewGroupInternal.cs
- IISMapPath.cs
- FloaterBaseParaClient.cs
- ConfigXmlSignificantWhitespace.cs
- FileDialog_Vista.cs
- ToolboxControl.cs
- HttpDictionary.cs
- RecordsAffectedEventArgs.cs
- PlatformNotSupportedException.cs
- ArglessEventHandlerProxy.cs
- AsymmetricSecurityProtocolFactory.cs
- DateTimeUtil.cs
- Stroke.cs
- DCSafeHandle.cs
- MobileCategoryAttribute.cs
- QueryException.cs
- XPathExpr.cs
- EncryptedType.cs
- Properties.cs
- DataBindingList.cs
- CodeAttributeArgumentCollection.cs
- CellTreeNodeVisitors.cs
- DataContext.cs
- ToolStripDropDownClosingEventArgs.cs
- xmlformatgeneratorstatics.cs
- Metafile.cs
- WindowsRegion.cs
- precedingsibling.cs
- ValidationEventArgs.cs
- XPathScanner.cs
- ContainerControlDesigner.cs
- CqlGenerator.cs
- ConfigurationLocation.cs
- SubtreeProcessor.cs
- EntityStoreSchemaFilterEntry.cs
- TreeViewHitTestInfo.cs
- XomlCompilerResults.cs
- DirectoryRedirect.cs
- MessageTransmitTraceRecord.cs
- ViewLoader.cs
- DateTimeValueSerializer.cs
- UserPreferenceChangingEventArgs.cs
- StateBag.cs
- GenericsInstances.cs
- TextTreeUndoUnit.cs
- HwndSubclass.cs
- NativeRecognizer.cs
- FontStretch.cs
- SymmetricKeyWrap.cs
- AsnEncodedData.cs
- UrlRoutingModule.cs
- IPEndPoint.cs
- NonVisualControlAttribute.cs
- Facet.cs
- ConditionedDesigner.cs
- XmlSerializerNamespaces.cs
- TypeElement.cs
- PropertyGeneratedEventArgs.cs
- Converter.cs
- BroadcastEventHelper.cs
- WriteStateInfoBase.cs
- MsmqDecodeHelper.cs