I have a database table with a lot of columns forming something like array:
Create table MyTable
(
Id int,
SomeColumn varchar,
OtherColumn varchar,
x1 double,
x2 double,
x3 double,
x4 double,
...
x50 double
)
Now, I have c# class that represent this data:
class MyClass
{
public int Id;
public string SomeColumn;
public string OtherColumn;
public double[] x;
}
And my question is: is there a way to use Dapper to fetch such data from database? I like to use Dapper, as it able to automaticaly map columns to fields based on their name, but can it handle data forming arrays?
And no, I cannot change the database schema. It is legacy software and db must remain unchanged.