rekna wrote:
I've read that article and used a lot of the ideas there. However, all examples are always very basic, never show more complex web applications... My questions only begin where all the articles stop. Relations, gridview/formview examples, databinding with objectdatesource, data validation.
I guess others too are still looking for answers.
Three of your areas are outside of the scope of ORM, as far as I can tell -- If you want to know about Relations when it comes to web forms, your best bet is to scour the online library at ora.com (Called Safari) and look for a book on web forms (most likely ASP.NET, though they have books on PHP, Perl CGI, et. al.) With data validation, there's no need to bring ORM into that -- data validation is just a pure code thing -- depending on the language,
www.ora.com once again has the answer in their 'cookbook' series -- and you'll probably find the answer (with code) to your issues there.
As far as Databinding goes -- that's mostly your normal databinding code, simply with ORM handling the gory details about pulling that stuff out of a database. In C#, its accomplished with a foreach loop, as with some other languages (I believe PHP has it, and if not, I know Perl does).