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
- HttpCacheVary.cs
- TextServicesLoader.cs
- RSAOAEPKeyExchangeDeformatter.cs
- MenuItem.cs
- AppSettingsReader.cs
- UriParserTemplates.cs
- CodeObjectCreateExpression.cs
- EventLogStatus.cs
- InfoCardTraceRecord.cs
- RtfToken.cs
- WebResourceUtil.cs
- FloaterParagraph.cs
- MetadataItem_Static.cs
- RadioButton.cs
- PrimitiveCodeDomSerializer.cs
- EventWaitHandleSecurity.cs
- XmlNodeComparer.cs
- GridItemCollection.cs
- Configuration.cs
- TextPenaltyModule.cs
- XmlSchemaComplexType.cs
- EntitySetBaseCollection.cs
- dataprotectionpermissionattribute.cs
- MexTcpBindingElement.cs
- FixedPageAutomationPeer.cs
- WebBodyFormatMessageProperty.cs
- AnnotationResourceCollection.cs
- Paragraph.cs
- OrderByLifter.cs
- SafeNativeMethodsOther.cs
- CookieProtection.cs
- RelationalExpressions.cs
- HtmlImage.cs
- ThreadStartException.cs
- SelectionItemPattern.cs
- FormatterConverter.cs
- SiteMapNodeItem.cs
- MSHTMLHostUtil.cs
- IssuedTokenServiceElement.cs
- ColorEditor.cs
- SegmentInfo.cs
- __Error.cs
- MarkupExtensionParser.cs
- CompilerInfo.cs
- XmlBinaryReaderSession.cs
- EntityDataSourceContainerNameConverter.cs
- XDRSchema.cs
- XmlSerializationReader.cs
- DataReceivedEventArgs.cs
- __Filters.cs
- TableLayoutSettingsTypeConverter.cs
- HttpInputStream.cs
- MultitargetingHelpers.cs
- NativeCppClassAttribute.cs
- XmlSiteMapProvider.cs
- InputLangChangeEvent.cs
- SingleConverter.cs
- DocumentReference.cs
- UriTemplateMatchException.cs
- NestedContainer.cs
- Font.cs
- InvokeHandlers.cs
- XsltQilFactory.cs
- ByteStack.cs
- hresults.cs
- CultureInfoConverter.cs
- SuppressIldasmAttribute.cs
- DataGrid.cs
- NativeMethods.cs
- WebPartVerb.cs
- JpegBitmapDecoder.cs
- sortedlist.cs
- FileUtil.cs
- ExitEventArgs.cs
- MappingModelBuildProvider.cs
- NavigationService.cs
- XmlTextReader.cs
- ObjectDataSource.cs
- ToolStripDropDown.cs
- HMACSHA256.cs
- EditableRegion.cs
- Span.cs
- ColorBlend.cs
- EntityDataSourceViewSchema.cs
- XMLUtil.cs
- EndEvent.cs
- ExternalCalls.cs
- VersionedStreamOwner.cs
- SoapReflectionImporter.cs
- PaperSource.cs
- IISUnsafeMethods.cs
- EmptyEnumerator.cs
- SafeNativeMethods.cs
- SpinLock.cs
- CheckBoxField.cs
- HwndMouseInputProvider.cs
- EmptyImpersonationContext.cs
- OpCodes.cs
- Matrix3D.cs
- KeyManager.cs