I am trying to use the repository pattern, ninject for DI with fluent nhibernate. I broken up my solution into 3 projects
I have 3 project files webui - controllers and views framework - service layer and repos tests- unit tests
Rather than manually having to bind every class, what methods and patterns, if any, are recommended for automatically setting up bindings?
I\'m using the WCF REST Template where services are implemented with just a class and registered in the Global.ascx (much like MVC controllers are).
So I\'m trying to introduce the concept of a user to my application and have got my own set of custom login routines etc. working开发者_如何学运维 fine. In my module, I\'m binding my IUserSession to m
I am reading nhibernate cookbook 3.0 and the fluent tutorial and I am kinda confused which one I should be using(cookbook by itself has many different ways)
Edit I would like to try to do what Remo Gloor has recommended Create a SessionFactoryProvider derived for Provider that retruns a SessionFactory using the code in OnApplicationStarted
I feel stupid for even asking this, but I can\'t find the file anywhere. I\'ve added Areas to my MVC 2 application. It caused some errors with Ninject, and after some research, I found the solution.
I\'ve been working on my first MVC web application and since launching it I\'ve been gettign this email which is automatically send from my Application_errror method in global.asax
I have a group of base repositories that are setup like this ... Bind<IRepository<SomeObject>>().To<SomeObjectRepository>().WithConstructorArgument(\"connection\", connection);