示例#1
0
文件: Select.cs 项目: bazer/Modl
 public Task <IEnumerable <M> > GetAllAsync <M>(bool onQueue = true) where M : IDbModl, new()
 {
     return(Materializer <M> .Async(ExecuteAsync(onQueue), DatabaseProvider).ContinueWith(x => x.Result.GetAll()));
 }
示例#2
0
文件: Select.cs 项目: bazer/Modl
 public Task <Materializer <M> > GetMaterializerAsync <M>(bool onQueue = true) where M : IDbModl, new()
 {
     return(Materializer <M> .Async(ExecuteAsync(onQueue), DatabaseProvider));
 }
示例#3
0
文件: Select.cs 项目: bazer/Modl
 public Task <M> GetAsync <M>(bool onQueue = true) where M : IDbModl, new()
 {
     return(Materializer <M> .Async(ExecuteAsync(onQueue), DatabaseProvider).ContinueWith(x => x.Result.ReadAndClose()));
 }