Exemplo n.º 1
0
 public async Task <IEnumerable <Hit> > GetHits()
 {
     using (var query = await Query("[dbo].[GetHits]")
                        .CommandType(CommandType.StoredProcedure)
                        .ExecuteAsync())
     {
         var hits = new List <Hit>();
         while (await query.ReadAsync())
         {
             hits.Add(Hit.FromResult(query));
         }
         return(hits);
     }
 }