开发者

Structure Question with EF 4.1

What are any reccomendations for the following. I have a structure like this. --ApplicationServices

--Domain

--Infrastructure.Backends

--Infrastructu开发者_运维百科re.Data

--MVC Web Application

Where should one put the edmx file and generated POCO's? I was thinking domain, if that were the case then the Application services would call the repository and return data to the controllers in the MVC application. Is this the correct mode of thought?

Where do the repository interfaces and implementation of the repository sit?


Check out the onion architecture. http://jeffreypalermo.com/blog/the-onion-architecture-part-1/

An example of the implementation. http://codecampserver.codeplex.com/

So, to answer your question, I'd put the .edmx in Infrastructure.Data. Domain can contain your model and interfaces. Infrastructure.* contains the implementations.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜