views:

83

answers:

2

Hey guys! I'm using ASP.NET MVC to develop an application for a library with Nhibernate. I've already used Repository and I'll add the Injection dependency. I'd like to know what are the different steps and what should I add to convert my app into a 3-tiered architecture? Thanks a lot for your help :).

A: 

You could read the nerddiner example, or read this blog series posts to give an idea.

eKek0
I've done those Steps and I've create my application but I need to deployed it in 3 machines and respect the 3-tiered architecture. I don't know how to do that and if there are rules and codes to add. thank you :)
Rinesse
+1  A: 

Hate to break it too you, but it looks like you need to re-write almost every controller to use dotnetremoting.

Traditionally "physical" tiers use a separate sever for website, application services and a database. This means you cannot open an nhibernate session on the same tier as your controllers.

jfar
Does it require a lot of work and changes?
Rinesse
I'd think so. Every database call has to go through a service layer. That a lot of separate methods to make as well as refactoring your controllers to use it.
jfar
thank you jfar :)
Rinesse