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
- OutKeywords.cs
- PowerModeChangedEventArgs.cs
- ConfigurationStrings.cs
- NumberAction.cs
- FormatConvertedBitmap.cs
- UInt16Converter.cs
- WindowAutomationPeer.cs
- VarRefManager.cs
- WebPartDescriptionCollection.cs
- TreeBuilderXamlTranslator.cs
- TemplatedWizardStep.cs
- WorkflowFormatterBehavior.cs
- IPEndPoint.cs
- WebHttpEndpointElement.cs
- ContactManager.cs
- Queue.cs
- WinFormsUtils.cs
- ResourceSet.cs
- ManifestSignatureInformation.cs
- ReadOnlyDataSourceView.cs
- Stylesheet.cs
- BindingGroup.cs
- SafeTimerHandle.cs
- TreeNodeBindingCollection.cs
- CommandManager.cs
- HttpRequestMessageProperty.cs
- SpellerError.cs
- _SslSessionsCache.cs
- XmlIlVisitor.cs
- SoundPlayer.cs
- TargetParameterCountException.cs
- DependencySource.cs
- BinHexDecoder.cs
- WorkflowWebService.cs
- _SSPIWrapper.cs
- COM2IDispatchConverter.cs
- Operand.cs
- VectorAnimationBase.cs
- ReflectEventDescriptor.cs
- TrackingServices.cs
- TransformValueSerializer.cs
- SHA512Managed.cs
- MaskPropertyEditor.cs
- ModelTreeEnumerator.cs
- TypeContext.cs
- ApplicationId.cs
- MimeMapping.cs
- ButtonChrome.cs
- BinaryConverter.cs
- StringSorter.cs
- MailBnfHelper.cs
- Keyboard.cs
- _CommandStream.cs
- CapabilitiesUse.cs
- StatusBarPanelClickEvent.cs
- PointF.cs
- ColorContextHelper.cs
- SecurityRuntime.cs
- DataServices.cs
- RuntimeIdentifierPropertyAttribute.cs
- CodeDelegateCreateExpression.cs
- DesignerSerializationVisibilityAttribute.cs
- InputScopeConverter.cs
- EncoderParameters.cs
- TransformGroup.cs
- TargetPerspective.cs
- PackWebRequestFactory.cs
- DecoderExceptionFallback.cs
- PageThemeBuildProvider.cs
- PersonalizationStateInfoCollection.cs
- Processor.cs
- ButtonRenderer.cs
- XsltCompileContext.cs
- MessageTraceRecord.cs
- UTF32Encoding.cs
- ModuleBuilder.cs
- Grammar.cs
- ListBoxItemAutomationPeer.cs
- ConnectionManager.cs
- FtpRequestCacheValidator.cs
- HttpValueCollection.cs
- MouseButton.cs
- PersonalizationStateQuery.cs
- ListChangedEventArgs.cs
- CqlBlock.cs
- SecurityKeyIdentifierClause.cs
- CommonRemoteMemoryBlock.cs
- SAPICategories.cs
- DataServiceQueryContinuation.cs
- SelectionWordBreaker.cs
- CollectionConverter.cs
- SqlBulkCopyColumnMappingCollection.cs
- TimelineClockCollection.cs
- NumericExpr.cs
- Int32CollectionConverter.cs
- CodeCastExpression.cs
- DataObjectAttribute.cs
- BinaryObjectWriter.cs
- CodeEntryPointMethod.cs
- SqlDataSourceCustomCommandPanel.cs