protected static DeleteAll ( |
||
targetType | The target ActiveRecord type | |
pkValues | IEnumerable | A list of primary keys |
return | int |
public static void DeleteAll() { ActiveRecordBase.DeleteAll(typeof(T)); }
/// <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); }
/// <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)); }
/// <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); }