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
- NodeInfo.cs
- TreeViewHitTestInfo.cs
- WhitespaceRuleLookup.cs
- SynchronizedRandom.cs
- ProviderUtil.cs
- DataGridViewRowPostPaintEventArgs.cs
- KeyedPriorityQueue.cs
- ContentType.cs
- MiniConstructorInfo.cs
- PersistChildrenAttribute.cs
- compensatingcollection.cs
- OpenTypeMethods.cs
- complextypematerializer.cs
- IconBitmapDecoder.cs
- PasswordRecovery.cs
- DataSourceCollectionBase.cs
- DataRecordInternal.cs
- TextRangeProviderWrapper.cs
- RoleBoolean.cs
- FormsAuthenticationEventArgs.cs
- SelectManyQueryOperator.cs
- PenLineJoinValidation.cs
- ParameterEditorUserControl.cs
- WinInet.cs
- InternalTypeHelper.cs
- ManualResetEventSlim.cs
- BuilderInfo.cs
- ExpressionVisitor.cs
- MatrixStack.cs
- WindowPatternIdentifiers.cs
- HostingEnvironmentSection.cs
- SqlCacheDependencyDatabaseCollection.cs
- ResetableIterator.cs
- TemplateXamlParser.cs
- Vector.cs
- VoiceObjectToken.cs
- DelegatedStream.cs
- TypedTableGenerator.cs
- BaseDataList.cs
- Compiler.cs
- IPipelineRuntime.cs
- WindowsTooltip.cs
- CrossAppDomainChannel.cs
- EventOpcode.cs
- Vector3D.cs
- OracleBoolean.cs
- LicenseException.cs
- HighlightOverlayGlyph.cs
- ReturnValue.cs
- WpfSharedBamlSchemaContext.cs
- StreamGeometry.cs
- ForeignKeyFactory.cs
- DisableDpiAwarenessAttribute.cs
- EntityModelSchemaGenerator.cs
- DateTimeConstantAttribute.cs
- ClientTarget.cs
- SchemaRegistration.cs
- DbConnectionFactory.cs
- DynamicILGenerator.cs
- SrgsRule.cs
- TrackingValidationObjectDictionary.cs
- FixedPage.cs
- WebPartExportVerb.cs
- LinqExpressionNormalizer.cs
- Cursors.cs
- FloatMinMaxAggregationOperator.cs
- NameValueFileSectionHandler.cs
- Padding.cs
- baseaxisquery.cs
- ColumnReorderedEventArgs.cs
- XmlHierarchicalEnumerable.cs
- Matrix3DValueSerializer.cs
- MultiSelector.cs
- AuthenticationModulesSection.cs
- SyndicationCategory.cs
- assertwrapper.cs
- WebBrowserPermission.cs
- ListItemCollection.cs
- GradientStop.cs
- ParamArrayAttribute.cs
- SingleAnimationBase.cs
- _SecureChannel.cs
- DesignerActionHeaderItem.cs
- UnsafeNativeMethods.cs
- HuffModule.cs
- CompositeActivityDesigner.cs
- HtmlInputRadioButton.cs
- XPathNodeHelper.cs
- SiteMap.cs
- NetNamedPipeSecurityElement.cs
- XmlAnyElementAttributes.cs
- SpotLight.cs
- ItemCheckEvent.cs
- ColumnTypeConverter.cs
- SqlDataSourceView.cs
- TableItemProviderWrapper.cs
- TrackingServices.cs
- Sql8ExpressionRewriter.cs
- OleDbConnectionInternal.cs
- DesignerTransactionCloseEvent.cs