Exemple #1
0
 protected async Task <List <T> > DeserializerAsync <T>(System.Data.Odbc.OdbcCommand command, CancellationToken canToken) where T : new()
 {
     using (var dataRead = await command.ExecuteReaderAsync(CommandBehavior.SequentialAccess | CommandBehavior.SingleResult, canToken))
     {
         var func = DeserializerManager.GetInstance().GetFuncForType <T>(dataRead);
         return(func(dataRead));
     }
 }