Would be really nice if it did, when using "manual SQL" instead of ORM, because in that case declaring the classes is unnecessary overhead. For example from the README:
public class Val
{
public decimal Money { get; set; }
public DateTime Date { get; set; }
}
public static IEnumerable<Val> QueryVals(SQLiteConnection db, long stockId) {
return db.Query<Val>("select Money, Date from Valuation where StockId = {stockId}");
}
The following variation does not work. It runs, but the returned List is just full of default values (although the correct number of records).
db.Query<(decimal Money, DateTime Date)>("select Money, Date from Valuation where StockId = {stockId}")
The cause seems to be that sqlite-net needs columns to map to properties, not fields.
Would there be any interest in this enhancement?
Would be really nice if it did, when using "manual SQL" instead of ORM, because in that case declaring the classes is unnecessary overhead. For example from the README:
The following variation does not work. It runs, but the returned List is just full of default values (although the correct number of records).
The cause seems to be that sqlite-net needs columns to map to properties, not fields.
Would there be any interest in this enhancement?