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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -