Sample N-tier ASP.NET MVC3 application with best practices (using EF 4.1)

后端 未结 6 870
温柔的废话
温柔的废话 2021-02-02 02:29

I am looking for a sample ASP.NET MVC3 N-Tier application that demonstrates best practices (uses Domain Driven Design and Entity Framework 4.1 Code first). I found the following

6条回答
  •  囚心锁ツ
    2021-02-02 03:01

    Although this post is old, But I have had same problem to find a good and modern pattern for a good ntier application. After I goggling for some hour, I Found Onion Architecture By Jeffrey Palermo. It is a must read article. here: jeffreypalermo.com/blog/the-onion-architecture-part-1/

    By using this article and using some other researches I Made a template (Example) of this architecture that uses Entity Framework 6.0 and Ninject Dependency Injection 3.2.0

    NTierCSharpExample

    I this template: Center Layer Is Domain Layer. Then Service Layer that is a bridge between presentation and Data Layer. For simplicity I used console app for presentation but you can simply remove it out and plug in a new asp.net mvc 5 application or any other presentation app you want.

提交回复
热议问题