DeleteAll() защищенный статический Метод

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
Результат 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);
 }