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
- EditorAttribute.cs
- GraphicsPathIterator.cs
- TreeNodeEventArgs.cs
- LinearGradientBrush.cs
- BuildProviderUtils.cs
- WindowsToolbar.cs
- Char.cs
- DateTimeFormatInfoScanner.cs
- ObjectConverter.cs
- NativeMethods.cs
- PathNode.cs
- BitHelper.cs
- Range.cs
- XmlHierarchicalDataSourceView.cs
- ReplyChannelBinder.cs
- QilTernary.cs
- HandlerFactoryCache.cs
- X500Name.cs
- DivideByZeroException.cs
- ToolbarAUtomationPeer.cs
- InputQueue.cs
- PatternMatcher.cs
- ProfileService.cs
- WebPartHelpVerb.cs
- XmlHierarchyData.cs
- DataColumnMappingCollection.cs
- QueryableDataSourceHelper.cs
- NonNullItemCollection.cs
- DataGridViewCellValueEventArgs.cs
- Evidence.cs
- DataComponentMethodGenerator.cs
- JsonReader.cs
- UnmanagedHandle.cs
- AspProxy.cs
- SafeProcessHandle.cs
- Model3DGroup.cs
- ChineseLunisolarCalendar.cs
- WinFormsSpinner.cs
- CurrencyWrapper.cs
- DefaultValueConverter.cs
- odbcmetadatafactory.cs
- TransportBindingElementImporter.cs
- SurrogateSelector.cs
- InstanceDescriptor.cs
- Point3DCollection.cs
- CachedPathData.cs
- TabletCollection.cs
- XsdBuildProvider.cs
- SortedSetDebugView.cs
- PrivilegeNotHeldException.cs
- DocumentSequenceHighlightLayer.cs
- TaiwanCalendar.cs
- SqlExpressionNullability.cs
- ListCommandEventArgs.cs
- ApplicationHost.cs
- NavigateUrlConverter.cs
- GeneralTransform3DGroup.cs
- WebPart.cs
- XmlDataImplementation.cs
- BuildProvider.cs
- MethodImplAttribute.cs
- CqlQuery.cs
- XmlNode.cs
- ActivityDesignerLayoutSerializers.cs
- Parser.cs
- SourceSwitch.cs
- FontUnitConverter.cs
- Compilation.cs
- DetailsViewUpdateEventArgs.cs
- TextParagraphCache.cs
- WindowsTreeView.cs
- SerializationInfoEnumerator.cs
- ChannelManager.cs
- WindowsPrincipal.cs
- FontNameEditor.cs
- TreeNodeStyleCollection.cs
- SizeFConverter.cs
- TargetPerspective.cs
- OpenFileDialog.cs
- SecurityState.cs
- DiscoveryDocumentReference.cs
- OciHandle.cs
- RegisteredArrayDeclaration.cs
- ToolboxItemAttribute.cs
- WpfSharedBamlSchemaContext.cs
- QueryIntervalOp.cs
- WebDescriptionAttribute.cs
- xsdvalidator.cs
- Themes.cs
- HttpSessionStateBase.cs
- COM2FontConverter.cs
- InternalCache.cs
- NavigateEvent.cs
- SplitterCancelEvent.cs
- ColumnResult.cs
- IdentitySection.cs
- DelimitedListTraceListener.cs
- PackageRelationship.cs
- FormsAuthenticationEventArgs.cs
- EntityContainerEmitter.cs