Get strong types from a DataTable in .NET 3.5 -


i have no choice work following:

  • i'm given non-strongly-typed datatable columns known
  • i have accompanying poco model classes can annotated attributes if needed
  • i have stick .net 3.5
  • i want exposes datatable generic collection, list or enumerable, etc. of strong poco type (or @ least pass typeof() , 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

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -