/// <summary> /// Deletes the given rows. /// </summary> /// <param name="objs">The objects to delete.</param> /// <param name="commandTimeout">Number of seconds before command execution timeout.</param> /// <returns>The number of deleted rows.</returns> public int BulkDelete(IEnumerable <T> objs, int commandTimeout = 30) { int count = Access.BulkDelete(objs, commandTimeout); Items.Remove(objs); return(count); }
/// <summary> /// Deletes the rows with the given keys. /// </summary> /// <param name="keys">The keys for the rows to delete.</param> /// <param name="commandTimeout">Number of seconds before command execution timeout.</param> /// <returns>The number of deleted rows.</returns> public int BulkDelete(IEnumerable <object> keys, int commandTimeout = 30) { int count = Access.BulkDelete(keys, commandTimeout); Items.RemoveKeys(keys); return(count); }