DeleteAll() protected static method

Deletes all targetType objects, based on the primary keys supplied on pkValues.
protected static DeleteAll ( Type targetType, IEnumerable pkValues ) : int
targetType System.Type The target ActiveRecord type
pkValues IEnumerable A list of primary keys
return int
コード例 #1
0
 public static void DeleteAll()
 {
     ActiveRecordBase.DeleteAll(typeof(T));
 }
コード例 #2
0
 /// <summary>
 /// Deletes all entities of specified type that match the HQL where clause
 /// </summary>
 /// <param name="type">The type.</param>
 /// <param name="where">The where.</param>
 public static void DeleteAll(Type type, string where)
 {
     ActiveRecordBase.DeleteAll(type, where);
 }
コード例 #3
0
 /// <summary>
 /// Deletes all <paramref name="targetType" /> objects, based on the primary keys
 /// supplied on <paramref name="pkValues" />.
 /// </summary>
 /// <param name="targetType">The target ActiveRecord type</param>
 /// <param name="pkValues">A list of primary keys</param>
 /// <returns>The number of objects deleted</returns>
 public static int DeleteAll(Type targetType, IEnumerable pkValues)
 {
     return(ActiveRecordBase.DeleteAll(targetType, pkValues));
 }
コード例 #4
0
 /// <summary>
 /// Deletes all entities of the specified type (and their inheritors)
 /// </summary>
 /// <param name="type">The type.</param>
 public static void DeleteAll(Type type)
 {
     ActiveRecordBase.DeleteAll(type);
 }