Code:
/ 4.0 / 4.0 / 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
///// 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OutputCacheSettings.cs
- Soap12ProtocolImporter.cs
- PropertySourceInfo.cs
- DoubleLink.cs
- DataGridViewCellFormattingEventArgs.cs
- PropertyValue.cs
- TextUtf8RawTextWriter.cs
- StreamReader.cs
- FeatureSupport.cs
- ListViewCancelEventArgs.cs
- HttpWebResponse.cs
- SamlAuthenticationStatement.cs
- UInt64.cs
- PropertyChangingEventArgs.cs
- DataGridBoolColumn.cs
- printdlgexmarshaler.cs
- PeerCollaboration.cs
- NameValueConfigurationElement.cs
- IndexedString.cs
- Wrapper.cs
- WebPartChrome.cs
- ConstraintStruct.cs
- _RequestCacheProtocol.cs
- AssemblyUtil.cs
- storepermissionattribute.cs
- FloatSumAggregationOperator.cs
- RegexWorker.cs
- RequestCacheManager.cs
- ProvidersHelper.cs
- QueryOutputWriter.cs
- Rectangle.cs
- BaseTreeIterator.cs
- DataColumnPropertyDescriptor.cs
- RequestQueue.cs
- ErrorInfoXmlDocument.cs
- base64Transforms.cs
- EntityContainer.cs
- SQLInt64.cs
- WebEventCodes.cs
- GenerateDerivedKeyRequest.cs
- StateManagedCollection.cs
- PathTooLongException.cs
- RTLAwareMessageBox.cs
- FixedStringLookup.cs
- AppDomainInstanceProvider.cs
- NumericPagerField.cs
- HttpServerUtilityWrapper.cs
- MeshGeometry3D.cs
- SamlEvidence.cs
- InsufficientExecutionStackException.cs
- MatrixCamera.cs
- RIPEMD160Managed.cs
- IsolatedStorageFile.cs
- SqlMethodTransformer.cs
- StrokeNodeOperations.cs
- DefaultBindingPropertyAttribute.cs
- EntityKey.cs
- GregorianCalendarHelper.cs
- ICspAsymmetricAlgorithm.cs
- ParameterElementCollection.cs
- ActivityWithResult.cs
- ChannelSinkStacks.cs
- RegistrySecurity.cs
- Part.cs
- SettingsSection.cs
- FormViewRow.cs
- EntityClassGenerator.cs
- MulticastIPAddressInformationCollection.cs
- TitleStyle.cs
- DocumentPageTextView.cs
- HotSpot.cs
- CollectionViewGroup.cs
- NoPersistScope.cs
- NullRuntimeConfig.cs
- DesignerGeometryHelper.cs
- PublisherIdentityPermission.cs
- SqlInternalConnectionTds.cs
- DrawingVisualDrawingContext.cs
- EdmItemError.cs
- ComponentRenameEvent.cs
- TargetParameterCountException.cs
- PhoneCall.cs
- GrabHandleGlyph.cs
- EntityParameterCollection.cs
- ProfileModule.cs
- MailHeaderInfo.cs
- NamespaceInfo.cs
- EncryptedType.cs
- Model3D.cs
- FunctionMappingTranslator.cs
- BasicExpandProvider.cs
- ObjectSet.cs
- RefreshPropertiesAttribute.cs
- ScriptIgnoreAttribute.cs
- DomainUpDown.cs
- InternalPermissions.cs
- ListControl.cs
- DataGridViewTextBoxEditingControl.cs
- Transform.cs
- EmbossBitmapEffect.cs