Sql.Net Class Library Documentation

DeleteQuery Class

Encapsulates a SQL DELETE statement

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

System.Object
   Reeb.SqlOM.DeleteQuery

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.

Remarks

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.

Example

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

Requirements

Namespace: Reeb.SqlOM

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

See Also

DeleteQuery Members | Reeb.SqlOM Namespace