we are creating a new web application using Microsoft ASP.NET MVC2 and Entity Framework 4. Although I am sure that there is no one correct answer to my question, we are struggling to agree on the structure of the VS2010 solution.
The application will use SQL Server 2008 with a possible future version of the Azure cloud. We use EF4 with TOC POCOs (model first) and access several third-party web services. We will also be connecting to several external messaging systems. The user interface is based on standard ASP.NET (MVC) with jQuery. In the future we can provide a version of Silverlight / WPF, as well as a mobile one.
So, just, we start with a clean VS2010 solution - then what? I suggested 4 data folders (EF edmx file, etc.), Domain (entities, repositories), services (access to web services), presentation (web ui, etc.). However, in the “Presentation” section, creating an ASP.NET MVC2 project explicitly creates its own “Models” folder, etc., And it does not seem to be too good for this proposed structure. I also skip the business layer (or is it sitting in a domain?).
Again, I am sure that there is not a single correct way for this, but I would really appreciate your views on this.
thanks
source share