コード例 #1
0
ファイル: XExtension.cs プロジェクト: BestHYC/MyDAL
 /// <summary>
 /// Selecter 快速 PagingListAsync 方法
 /// </summary>
 public static async Task <PagingList <VM> > PagingListAsync <M, VM>(this IDbConnection conn, PagingQueryOption option, Expression <Func <M, VM> > columnMapFunc)
     where M : class
     where VM : class
 {
     return(await conn.Selecter <M>().Where(option).PagingListAsync <VM>(option, columnMapFunc));
 }
コード例 #2
0
ファイル: XExtension.cs プロジェクト: BestHYC/MyDAL
 /// <summary>
 /// Selecter 快速 PagingListAsync 方法
 /// </summary>
 public static async Task <PagingList <M> > PagingListAsync <M>(this IDbConnection conn, PagingQueryOption option)
     where M : class
 {
     return(await conn.Selecter <M>().Where(option).PagingListAsync(option));
 }