Beispiel #1
0
 /// <summary>
 /// Deletes multiple rows in the database. Must have their primary keys set.
 /// </summary>
 /// <param name="models">Rows to delete.</param>
 public void Delete(T[] models)
 {
     using (var statement = new SqlStatement <T>(SqlStatement <T> .Mode.Delete, context)) {
         statement.Delete(models);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Delete multiple rows in the database based upon the primary row ids.
 /// </summary>
 /// <param name="ids">Row ids to delete.</param>
 public void Delete(long[] ids)
 {
     using (var statement = new SqlStatement <T>(SqlStatement <T> .Mode.Delete, context)) {
         statement.Delete(ids);
     }
 }