3

Are there any open source projects in ASP.NET MVC that use the Domain Model architecture instead of the Transaction Script (Service Layer) architecture? I'm looking for more of a project then just small examples.

Mike Flynn
  • 22,342
  • 54
  • 182
  • 341

2 Answers2

2

Have a look at CodeCampServer or S#arp Architecture.

Rookian
  • 19,841
  • 28
  • 110
  • 180
0

You can have a look at mine:

http://clientdatasystem.codeplex.com/SourceControl/list/changesets

and accompanying blog:

http://lucidcoding.blogspot.com/2011/09/software-architecture-how-to-do-it.html

Paul T Davies
  • 2,527
  • 2
  • 22
  • 39
  • I like this project, but you are still using a transaction script layer called Service. – Mike Flynn Dec 21 '11 at 23:16
  • @MikeFlynn Thank you for the compliment, but there is no layer called service (there is no assembly called service) and it does not use the Transaction Script pattern. Why do you think it does? – Paul T Davies Dec 22 '11 at 08:53
  • Don't you call a service layer from the controller? GetResponse> response = clientService.GetAllClients() as GetResponse>. There is also a class called ClientService? – Mike Flynn Dec 24 '11 at 06:06
  • @MikeFlynn You may be refering to the ApplicationLayer - this could interchangeably be called the Service Layer. How does this make it a Transaction script? – Paul T Davies Dec 24 '11 at 16:15
  • I would read this and look at the diagram. http://charliedigital.com/2009/07/29/domain-models-anemic-domain-models-and-transaction-scripts-oh-my/ – Mike Flynn Dec 24 '11 at 17:17
  • @MikeFlynn The Service/Application Layer is just loads the required entities, calls the business logic on them (just validation in this case, which is contained in the entity) and saves them. BL is contained in entities. This is not a Transaction script. – Paul T Davies Dec 24 '11 at 17:22
  • Well then I don't need any help because I am already doing this in my project. Thanks for the insight. – Mike Flynn Dec 24 '11 at 17:35