Get strong types from a DataTable in .NET 3.5 -
i have no choice work following:
- i'm given non-strongly-typed
datatablecolumns known - i have accompanying poco model classes can annotated attributes if needed
- i have stick .net 3.5
- i want exposes
datatablegeneric collection, list or enumerable, etc. of strong poco type (or @ least passtypeof() , object can cast).
the table have large number of columns. don't want have string-index data table each one. seem remember mechanism whereby framework used reflection this, can't find it.
i don't care technology end using (be ef, linq, etc.) long stays within microsoft stack (i can't use third-party apis). i'd prefer not create ef design files, nor have vs create model class me. how do painlessly possible?
Comments
Post a Comment