Hi Patrick - I am using NH with GridViews and ObjectDataSources all the time, and it works like a charm.
Check this link: http://www.codeproject.com/KB/architecture/NHibernateBestPractices.aspx I emply the Dao architecture that Billy MacCaffery is using in that article for the "DAL" part of my application. I also create some classes that work well with the ObjectDataSource. An example might be a CustomerBLL that has the methods for retrieval, update, delete, etc. This CustomerBLL in turn will invoke the Dao classes to get the work done. These BLL classes might seem like a little extra work, but on the other hand I get a very thin code-behind file for my aspx pages, where I only check on whether or not an exception has occurred in the BLL - DAL chain of objects. Hope this helps. Cheers, Thomas On 24 Sep., 13:24, pn <[EMAIL PROTECTED]> wrote: > Hi, > > My team is looking for a solution to use NHibernate with ASP.NET > GridView (for all CRUD operations). I have searched around and only > found scattered materials for this topic. > > Wonder if there is any best practice out there? > > I also saw that LINQ to NHibernate might be an answer because in .NET > 3.5 there is a LinqDataSource. However, how ready is the Linq for > NHibernate in NHibernateContrib? Anyone have tried it? > > Thanks, > - Patrick --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
