public static int Delete(this SqlDatabase db, object item, string id1 = null, string id2 = null) { return(db.ExecuteNonQuery(item.ToSqlDelete(id1, id2), item.ToSqlParameter())); }
public static int Insert(this SqlDatabase db, object item, string pk = null) { return(db.ExecuteNonQuery(item.ToSqlInsert(pk), item.ToSqlParameter())); }