DbNetSuiteVS
ExecuteDelete Method (CmdConfig)
NamespacesDbNetLink.DataDbNetDataExecuteDelete(CommandConfig)
Deletes record from the table using the supplied CommandConfig
Declaration Syntax
C#Visual Basic
public long ExecuteDelete(
	CommandConfig CmdConfig
)
Public Function ExecuteDelete ( _
	CmdConfig As CommandConfig _
) As Long
Parameters
CmdConfig (CommandConfig)

The parameterised delete statement/table name and parameter values

Return Value
Returns the number of records deleted
Examples
CopyC#
DbNetData Data = new DbNetData( ConfigurationSettings.AppSettings[ "nwind" ] );
Data.Open();
CommandConfig CmdConfig = new CommandConfig("products");
// You only need to specify the table name. DbNetData will build the rest of 
// the delete statement automatically using the parameters to build the where
// clause
CmdConfig.Params["discontinued"] = 1;

Data.ExecuteDelete(CmdConfig)
Data.Close();

Assembly: DbNetLink.DbNetSuiteVS (Module: DbNetLink.DbNetSuiteVS) Version: 0.9.3317.16858 (0.9.0.0)