Untitled
Anonymous
plain_text
01/29/2024 6:37 AM
480 B
32
Indexable
public int DeleteByColumn(string tableName, string columnName, string value)
{
var command = new SqlCommand
{
CommandType = CommandType.Text,
CommandText = "delete from " + tableName + " where " + columnName + " = " + value + ";",
Connection = _connector.GetConnection()
};
return command.ExecuteNonQuery();
}Editor is loading...
Leave a Comment