Code:
/ 4.0 / 4.0 / untmp / 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
///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ImmutableCollection.cs
- DataGridTableCollection.cs
- ObjectResult.cs
- Constant.cs
- InternalResources.cs
- Logging.cs
- SoundPlayer.cs
- MaskedTextProvider.cs
- ExternalException.cs
- TextModifierScope.cs
- WebPartZoneAutoFormat.cs
- XmlAttributeAttribute.cs
- UIElement.cs
- InternalControlCollection.cs
- WebConfigurationFileMap.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- CallTemplateAction.cs
- JsonDataContract.cs
- SchemaSetCompiler.cs
- WebHttpBindingElement.cs
- Transform3DGroup.cs
- recordstate.cs
- NamedElement.cs
- PtsHelper.cs
- SqlNamer.cs
- RuleEngine.cs
- ScrollBarAutomationPeer.cs
- XmlObjectSerializerContext.cs
- EnumValidator.cs
- Quaternion.cs
- Types.cs
- WorkflowApplicationException.cs
- ModifyActivitiesPropertyDescriptor.cs
- CodeNamespaceCollection.cs
- RectangleHotSpot.cs
- HttpResponseHeader.cs
- DbUpdateCommandTree.cs
- ImageField.cs
- PolyBezierSegmentFigureLogic.cs
- DataServiceBuildProvider.cs
- DbgUtil.cs
- WindowPatternIdentifiers.cs
- ClearTypeHintValidation.cs
- TextElement.cs
- XmlAnyElementAttribute.cs
- RequestTimeoutManager.cs
- PtsHelper.cs
- RightsManagementPermission.cs
- AppDomainProtocolHandler.cs
- TextFormattingConverter.cs
- DropDownButton.cs
- ConfigurationLocationCollection.cs
- PngBitmapDecoder.cs
- BasicCellRelation.cs
- UniqueConstraint.cs
- XmlCompatibilityReader.cs
- LingerOption.cs
- CryptographicAttribute.cs
- HostingEnvironment.cs
- ResourceIDHelper.cs
- XsdDataContractExporter.cs
- RecordManager.cs
- JournalEntryStack.cs
- BasicSecurityProfileVersion.cs
- GridViewColumnCollectionChangedEventArgs.cs
- ComponentChangingEvent.cs
- SessionEndingCancelEventArgs.cs
- AsnEncodedData.cs
- UInt16Storage.cs
- SizeLimitedCache.cs
- EntitySqlQueryState.cs
- HtmlSelect.cs
- TypefaceMetricsCache.cs
- RectangleHotSpot.cs
- TableAdapterManagerHelper.cs
- ToolStripItem.cs
- TextSchema.cs
- AmbientValueAttribute.cs
- InvalidPropValue.cs
- RenamedEventArgs.cs
- XmlDocumentType.cs
- EndpointAddress.cs
- MetadataSet.cs
- DataSourceControl.cs
- RecordBuilder.cs
- EntityDataSourceWizardForm.cs
- SemaphoreSecurity.cs
- NoResizeHandleGlyph.cs
- DataGridViewCellValueEventArgs.cs
- StateBag.cs
- EFDataModelProvider.cs
- RenderContext.cs
- ExpressionConverter.cs
- MetadataProperty.cs
- OutOfMemoryException.cs
- IntegerFacetDescriptionElement.cs
- ApplicationServicesHostFactory.cs
- PointAnimationBase.cs
- DoubleAnimationUsingKeyFrames.cs
- WSSecureConversation.cs