Search code examples
c#.netdatatablestrongly-typed-dataset

Is there a way to populate an strongly typed object when the structure isn't known?


i'd like to be able to query any number of databases with different table layouts, return a datatable then use that datatable to build a strongly typed object. Is there anything out there that does this or comes close without having to code for each different table layout?

Thank you in advance!

Zac


Solution

  • You could try subsonic.

    It does exactly that, using code generation via T4 templates.

    Get more information at http://subsonicproject.com/

    Cheers,

    André