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
- SqlBuilder.cs
- MobileControlsSectionHandler.cs
- RuntimeHelpers.cs
- CodeNamespace.cs
- StdValidatorsAndConverters.cs
- TextCompositionEventArgs.cs
- TableHeaderCell.cs
- Canvas.cs
- XmlCharCheckingWriter.cs
- _SslSessionsCache.cs
- XslException.cs
- IgnoreDataMemberAttribute.cs
- MethodBuilderInstantiation.cs
- RestHandler.cs
- OleDbCommand.cs
- NavigatorInput.cs
- DbConnectionInternal.cs
- MultipartContentParser.cs
- KeyInstance.cs
- Canvas.cs
- FragmentNavigationEventArgs.cs
- ExceptionNotification.cs
- Pens.cs
- SmtpFailedRecipientException.cs
- DebugHandleTracker.cs
- DocumentViewerConstants.cs
- BaseCAMarshaler.cs
- HyperLinkColumn.cs
- CodeExporter.cs
- UInt16Storage.cs
- CreateUserErrorEventArgs.cs
- Package.cs
- ExtensionElementCollection.cs
- RichTextBoxDesigner.cs
- WpfXamlType.cs
- ColorMatrix.cs
- versioninfo.cs
- GregorianCalendarHelper.cs
- StateChangeEvent.cs
- Aggregates.cs
- AccessibleObject.cs
- Calendar.cs
- SecurityContext.cs
- TripleDES.cs
- Utility.cs
- NullReferenceException.cs
- DocumentPaginator.cs
- Triangle.cs
- ListView.cs
- ReachPageContentSerializerAsync.cs
- SqlProviderUtilities.cs
- TraceLevelHelper.cs
- EncodingDataItem.cs
- VariableQuery.cs
- SafeFileMappingHandle.cs
- CryptoHelper.cs
- _SSPIWrapper.cs
- OdbcFactory.cs
- MouseGestureConverter.cs
- _emptywebproxy.cs
- recordstatefactory.cs
- Int32Collection.cs
- XAMLParseException.cs
- BitmapEffectInputData.cs
- LayoutSettings.cs
- DataGridSortCommandEventArgs.cs
- LoadWorkflowCommand.cs
- Constraint.cs
- OdbcConnectionPoolProviderInfo.cs
- UpdateTracker.cs
- ResXFileRef.cs
- StreamInfo.cs
- SimpleHandlerFactory.cs
- ProfileManager.cs
- PropertyItem.cs
- Vector.cs
- TaiwanLunisolarCalendar.cs
- DataGridViewHitTestInfo.cs
- HotSpot.cs
- Task.cs
- PartialCachingControl.cs
- CompositeControl.cs
- RegexWorker.cs
- ToolStripRendererSwitcher.cs
- PageSetupDialog.cs
- PrinterUnitConvert.cs
- KeyMatchBuilder.cs
- ExclusiveHandleList.cs
- LogEntryDeserializer.cs
- PlaceHolder.cs
- XmlWrappingReader.cs
- AssertSection.cs
- CellTreeSimplifier.cs
- MenuItemBindingCollection.cs
- RSAOAEPKeyExchangeDeformatter.cs
- XmlAttributeCache.cs
- XamlSerializerUtil.cs
- MarginsConverter.cs
- BoolLiteral.cs
- JsonByteArrayDataContract.cs