Deletes record from the table using the supplied SQL statement
Namespace:
DbNetLink.DataAssembly: DbNetLink.DbNetData (in DbNetLink.DbNetData.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public long ExecuteDelete( string Sql ) |
| Visual Basic (Declaration) |
|---|
Public Function ExecuteDelete ( _ Sql As String _ ) As Long |
| Visual C++ |
|---|
public: long long ExecuteDelete( String^ Sql ) |
Parameters
- Sql
- Type: System..::.String
The delete statement
Return Value
Returns the number of records deleted
Examples
DbNetData Db = new DbNetData( ConfigurationManager.ConnectionStrings["nwind"] ); Db.Open(); Db.ExecuteDelete("delete from products where discontinued = 1") Db.Close();