Exemplo n.º 1
0
 protected async Task <List <T> > DeserializerAsync <T>(SQLiteCommand 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));
     }
 }
Exemplo n.º 2
0
 protected List <T> Deserializer <T>(IDbCommand command) where T : new()
 {
     using (var dataRead = command.ExecuteReader(CommandBehavior.SequentialAccess | CommandBehavior.SingleResult))
     {
         var func = DeserializerManager.GetInstance().GetFuncForType <T>(dataRead);
         return(func(dataRead));
     }
 }