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
- ValidationPropertyAttribute.cs
- SwitchExpression.cs
- PermissionAttributes.cs
- CmsInterop.cs
- CheckBoxFlatAdapter.cs
- NavigatorInput.cs
- TempEnvironment.cs
- CustomCredentialPolicy.cs
- DirectionalAction.cs
- PriorityChain.cs
- UnsafeNativeMethods.cs
- DesignerAutoFormat.cs
- ResourcesGenerator.cs
- RightsManagementEncryptedStream.cs
- SplashScreen.cs
- TableStyle.cs
- DocumentViewerAutomationPeer.cs
- _RequestLifetimeSetter.cs
- RuntimeConfig.cs
- CalendarDesigner.cs
- OleDbStruct.cs
- IdentityNotMappedException.cs
- InvalidPrinterException.cs
- SupportedAddressingMode.cs
- KnownAssemblyEntry.cs
- XslNumber.cs
- ProxyWebPartManagerDesigner.cs
- TreeNodeClickEventArgs.cs
- XmlNamespaceDeclarationsAttribute.cs
- NonVisualControlAttribute.cs
- DataGridViewLayoutData.cs
- Convert.cs
- MessageEnumerator.cs
- StringValueSerializer.cs
- ToolboxCategoryItems.cs
- Latin1Encoding.cs
- WindowsGraphicsCacheManager.cs
- PerspectiveCamera.cs
- EncryptRequest.cs
- CommandSet.cs
- SourceFilter.cs
- DBDataPermission.cs
- MaskDesignerDialog.cs
- WindowsTreeView.cs
- unsafenativemethodsother.cs
- ChangePassword.cs
- MLangCodePageEncoding.cs
- CompatibleComparer.cs
- XmlDocument.cs
- XmlCDATASection.cs
- PrimaryKeyTypeConverter.cs
- SqlUtils.cs
- MemberBinding.cs
- AdapterDictionary.cs
- ValidationErrorInfo.cs
- ImageBrush.cs
- DataContractSet.cs
- MenuItem.cs
- SizeChangedInfo.cs
- PathSegment.cs
- XsltLibrary.cs
- LoadMessageLogger.cs
- followingsibling.cs
- GacUtil.cs
- XmlChoiceIdentifierAttribute.cs
- FormClosingEvent.cs
- ServiceDescriptionImporter.cs
- DesignOnlyAttribute.cs
- SoapReflectionImporter.cs
- AutomationPropertyInfo.cs
- FontStretchConverter.cs
- GetPolicyDetailsRequest.cs
- WebConfigManager.cs
- UnionCodeGroup.cs
- RelationshipConverter.cs
- DataGridViewCellCancelEventArgs.cs
- DesignerSerializationManager.cs
- QilGeneratorEnv.cs
- OleDbSchemaGuid.cs
- DataServicePagingProviderWrapper.cs
- ForwardPositionQuery.cs
- AbsoluteQuery.cs
- LOSFormatter.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- SendingRequestEventArgs.cs
- CfgSemanticTag.cs
- XmlAutoDetectWriter.cs
- GridViewColumnCollection.cs
- AppDomainEvidenceFactory.cs
- ThemeDirectoryCompiler.cs
- isolationinterop.cs
- HitTestWithGeometryDrawingContextWalker.cs
- AxHost.cs
- ServiceProviders.cs
- XmlSchemaValidationException.cs
- InstanceDataCollection.cs
- PasswordBox.cs
- CreatingCookieEventArgs.cs
- DtdParser.cs
- ActivityMetadata.cs