Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Common / CommandTrees / DbDeleteCommandTree.cs / 3 / DbDeleteCommandTree.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 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 DbExpression _predicate; internal DbDeleteCommandTree(MetadataWorkspace metadata, DataSpace dataSpace) : base(metadata, dataSpace) { } ////// 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 set { _predicate = value; } } 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); } internal override void Replace(ExpressionReplacer replacer) { using (new EntityBid.ScopeAuto("///
///- Equality expression
///- Constant expression
///- IsNull expression
///- Property expression
///- Reference expression to the target
///- And expression
///- Or expression
///- Not expression
///%d#", this.ObjectId)) { throw EntityUtil.NotSupported(); } } } } // 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 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 DbExpression _predicate; internal DbDeleteCommandTree(MetadataWorkspace metadata, DataSpace dataSpace) : base(metadata, dataSpace) { } ////// 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 set { _predicate = value; } } 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); } internal override void Replace(ExpressionReplacer replacer) { using (new EntityBid.ScopeAuto("///
///- Equality expression
///- Constant expression
///- IsNull expression
///- Property expression
///- Reference expression to the target
///- And expression
///- Or expression
///- Not expression
///%d#", this.ObjectId)) { throw EntityUtil.NotSupported(); } } } } // 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
- BamlBinaryWriter.cs
- GridItemPattern.cs
- TriState.cs
- ScrollBar.cs
- ExpandCollapsePattern.cs
- PrintPreviewControl.cs
- Facet.cs
- ManagedWndProcTracker.cs
- SqlDuplicator.cs
- BulletedList.cs
- OdbcDataReader.cs
- OleDbError.cs
- PropertyContainer.cs
- ClosableStream.cs
- RegexReplacement.cs
- BrowsableAttribute.cs
- Form.cs
- AssociatedControlConverter.cs
- WindowsToolbar.cs
- Transform3DGroup.cs
- MouseEvent.cs
- SerializationHelper.cs
- RestHandlerFactory.cs
- SqlStatistics.cs
- EntityClientCacheKey.cs
- IdentitySection.cs
- ToolStripProgressBar.cs
- TdsParserSessionPool.cs
- DrawingAttributes.cs
- ResourcePool.cs
- CustomLineCap.cs
- KeyConstraint.cs
- BitmapEffectGeneralTransform.cs
- DocumentScope.cs
- SqlVersion.cs
- Tokenizer.cs
- AutoResizedEvent.cs
- Registry.cs
- SchemaCollectionCompiler.cs
- TextEncodedRawTextWriter.cs
- ViewStateModeByIdAttribute.cs
- ToolStripMenuItemCodeDomSerializer.cs
- ACL.cs
- HashHelper.cs
- SQLMoneyStorage.cs
- COM2ExtendedBrowsingHandler.cs
- Rotation3D.cs
- TraceHandlerErrorFormatter.cs
- DataGridRowDetailsEventArgs.cs
- ConnectionStringsExpressionBuilder.cs
- ObjectPersistData.cs
- Evidence.cs
- XPathArrayIterator.cs
- LocalizationParserHooks.cs
- GregorianCalendar.cs
- UxThemeWrapper.cs
- NestedContainer.cs
- HttpProfileGroupBase.cs
- AssociationSet.cs
- XmlAutoDetectWriter.cs
- MultiBindingExpression.cs
- Ref.cs
- RandomDelayQueuedSendsAsyncResult.cs
- RestHandler.cs
- SqlTransaction.cs
- ButtonChrome.cs
- MethodExpr.cs
- SoapProtocolReflector.cs
- ServiceErrorHandler.cs
- ISO2022Encoding.cs
- DoubleIndependentAnimationStorage.cs
- TextDpi.cs
- AssemblyCache.cs
- DataTableNameHandler.cs
- TreeIterator.cs
- AbsoluteQuery.cs
- SqlDelegatedTransaction.cs
- ListSortDescriptionCollection.cs
- LinqMaximalSubtreeNominator.cs
- ArgIterator.cs
- DataFieldCollectionEditor.cs
- CroppedBitmap.cs
- DbConnectionPoolGroup.cs
- ListViewInsertEventArgs.cs
- CharacterMetrics.cs
- CryptoSession.cs
- AxisAngleRotation3D.cs
- GPPOINT.cs
- Style.cs
- NameValueFileSectionHandler.cs
- DataGridCommandEventArgs.cs
- Renderer.cs
- SqlFacetAttribute.cs
- KeyEvent.cs
- wgx_render.cs
- ColumnHeader.cs
- DefaultEventAttribute.cs
- MergePropertyDescriptor.cs
- ObjectItemCachedAssemblyLoader.cs
- TableChangeProcessor.cs