/// <summary> /// 移除所有实例 /// </summary> /// <typeparam name="T">类型</typeparam> /// <returns></returns> public static long RemoveAll <T>() where T : IEntity { IsTypeCanBeUsed(typeof(T)); return(EntityOperationExtensions.DBRemoveAll <T>()); }
/// <summary> /// 移除所有实例 /// </summary> /// <typeparam name="T">类型</typeparam> /// <param name="where">查询表达式</param> /// <returns></returns> public static long RemoveAll <T>(Expression <Func <T, bool> > where) where T : IEntity { IsTypeCanBeUsed(typeof(T)); return(EntityOperationExtensions.DBRemoveAll <T>(where)); }