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)); } }
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)); } }