public static async Task <IPagedList <T> > Create(DbRawSqlQuery <T> superset, int count, int pageNumber, int pageSize) { var list = new AsyncRawQueryPagedList <T>(); await list.Init(superset, count, pageNumber, pageSize); return(list); }
public static async Task <IPagedList <T> > ToRawPagedListAsync <T>(this DbRawSqlQuery <T> superset, Int32 queryCount, Int32 pageNumber, Int32 pageSize) { return(await AsyncRawQueryPagedList <T> .Create(superset, queryCount, pageNumber, pageSize)); }