SmartDispatcherController + NHibernate session

2009-06-13 Thread Lucio
I have an Add Product page in which there is a selection list of categories, you should pick one. The SmartDispatcherController will push inside my Product/New action the equivalent to this: productFromSmartDispatcher = new Product { Category = new Category { Id = 1 }, Name = Product Name }

Re: SmartDispatcherController + NHibernate session

2009-06-13 Thread Ken Egozi
you need an NH aware data binder. I think there is something out there somewhere. Personally, I would have used a DTO as the action's parameter, and then map it to a domain entity (NH powered). On Sat, Jun 13, 2009 at 6:36 PM, Lucio luciolu...@gmail.com wrote: I have an Add Product page in

Re: SmartDispatcherController + NHibernate session

2009-06-13 Thread Lucio
The DTO approach sounds very nice, thanks for the tip. On Jun 13, 3:19 pm, Ken Egozi egoz...@gmail.com wrote: you need an NH aware data binder. I think there is something out there somewhere. Personally, I would have used a DTO as the action's parameter, and then map it to a domain entity