I am developing an silverlight application using WCF and EF.
I am using Database first as our database already exists.
I have a table that consists of 100 columns with datatype real. We want to generate a class which has a List<double> or List<float> instead of that 100 discrete variables in the class for each column.
Is this possible ?? Can someone give me an example?
There’s no direct way. What you have to do is use reflection to convert it into a
List<double>. Suppose your table names is calledMyObject, then EF will generate a classMyObjectto represent a row in that table. You can then do:Hope you get the idea.