Sql.Net Class Library Documentation

DeleteQuery Class

Encapsulates a SQL DELETE statement

For a list of all members of this type, see DeleteQuery Members.


public class DeleteQuery

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.


Use DeleteQuery to delete a row in database table. Set TableName to the table you would like to delete rows from and use WhereClause to specify which rows are to be deleted.


DeleteQuery query = new DeleteQuery("products");
query.WhereClause.Terms.Add(WhereTerm.CreateCompare(SqlExpression.Field("productId"), SqlExpression.Number(999), CompareOperator.Equal));


Namespace: Reeb.SqlOM

Assembly: Reeb.SqlOM (in Reeb.SqlOM.dll)

See Also

DeleteQuery Members | Reeb.SqlOM Namespace