Yes, it is.

The question is: how far down the rabbit hole do you want to go? Do you want completely dynamic objects, for instance? Or strongly typed objects in code that dynamically load from a database? Is the assumption that the object structure in code the same as the database, or are there certain fields in the database you don't want in your type (or vice-versa)? Do you want the code to inspect the database and dynamically create a type based on whatever is in there?

Lots of design questions, but yes, it is very doable. I have some similar code in about 250 lines. Not tested enough to post, sadly.

By on 10/21/2010 5:44 AM ()

Thank you for answering the question. Your answer sounds like an excellent article for codeproject

By on 10/21/2010 11:50 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper