/*-------------------------------------------------------------*/ /// <summary> /// Deleter 便捷 DeleteAsync 方法 /// </summary> public static int Delete <M>(this XConnection conn, Expression <Func <M, bool> > compareFunc) where M : class, new() { return(conn.Deleter <M>().Where(compareFunc).Delete()); }
/// <summary> /// Deleter 便捷 DeleteAsync 方法 /// </summary> public static async Task <int> DeleteAsync <M>(this XConnection conn, Expression <Func <M, bool> > compareFunc) where M : class, new() { return(await conn.Deleter <M>().Where(compareFunc).DeleteAsync()); }