Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Common / CommandTrees / DbDeleteCommandTree.cs / 1 / 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
- DataListGeneralPage.cs
- DataControlButton.cs
- AxParameterData.cs
- TransactionState.cs
- DataGridViewComboBoxColumn.cs
- AxHost.cs
- StreamSecurityUpgradeProvider.cs
- FunctionImportElement.cs
- WebColorConverter.cs
- RemotingAttributes.cs
- IndexOutOfRangeException.cs
- CodeDirectionExpression.cs
- JsonXmlDataContract.cs
- safePerfProviderHandle.cs
- NativeMethods.cs
- ClientSettingsProvider.cs
- CharAnimationUsingKeyFrames.cs
- XmlReaderSettings.cs
- VirtualizingPanel.cs
- Domain.cs
- BoundField.cs
- EntityModelBuildProvider.cs
- TextTrailingWordEllipsis.cs
- OrderByQueryOptionExpression.cs
- WebReferenceCollection.cs
- CodeGen.cs
- ObjectQueryExecutionPlan.cs
- ImmutableObjectAttribute.cs
- XmlSortKey.cs
- LineBreakRecord.cs
- StaticFileHandler.cs
- XPathAncestorQuery.cs
- InlineCollection.cs
- SimpleWebHandlerParser.cs
- ListViewPagedDataSource.cs
- FixedSOMLineRanges.cs
- PropertiesTab.cs
- Typeface.cs
- EventMap.cs
- RelationshipEndMember.cs
- PenLineCapValidation.cs
- IndexOutOfRangeException.cs
- TextBoxRenderer.cs
- FixedHyperLink.cs
- TextCompositionEventArgs.cs
- SafeNativeMethods.cs
- EditorZoneDesigner.cs
- XomlDesignerLoader.cs
- DataControlButton.cs
- ArgIterator.cs
- BaseCodePageEncoding.cs
- PersonalizableTypeEntry.cs
- PropertyToken.cs
- EntityViewGenerationAttribute.cs
- ToolBarTray.cs
- BitmapEffectvisualstate.cs
- AssemblyGen.cs
- RewritingSimplifier.cs
- RoleGroupCollection.cs
- InkCanvas.cs
- BufferedReceiveElement.cs
- TCEAdapterGenerator.cs
- SizeValueSerializer.cs
- HtmlEmptyTagControlBuilder.cs
- CheckBoxRenderer.cs
- Roles.cs
- DelegatingTypeDescriptionProvider.cs
- AssemblyFilter.cs
- WebServicesInteroperability.cs
- ConsumerConnectionPoint.cs
- ClientConfigurationHost.cs
- TemplateInstanceAttribute.cs
- StdValidatorsAndConverters.cs
- DiscoveryClientElement.cs
- InstanceDataCollectionCollection.cs
- AuthorizationSection.cs
- DataServiceHost.cs
- HttpHandlerAction.cs
- CoTaskMemHandle.cs
- StatusBarPanelClickEvent.cs
- SignatureDescription.cs
- ForeignKeyFactory.cs
- WebUtil.cs
- MessageQueueCriteria.cs
- NativeMethods.cs
- WindowsIPAddress.cs
- newitemfactory.cs
- SQLByteStorage.cs
- WebPartZoneBaseDesigner.cs
- StringOutput.cs
- XomlCompilerResults.cs
- UIntPtr.cs
- TranslateTransform.cs
- TextTreePropertyUndoUnit.cs
- TypeLoadException.cs
- IODescriptionAttribute.cs
- OleDbConnectionFactory.cs
- Graphics.cs
- ExcCanonicalXml.cs
- DynamicDataExtensions.cs