コード例 #1
0
ファイル: Delete.cs プロジェクト: hpc-dal/HPC.DAL
        /*-------------------------------------------------------------*/

        /// <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());
        }
コード例 #2
0
ファイル: Delete.cs プロジェクト: hpc-dal/HPC.DAL
 /// <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());
 }