EDIT :
In the original question, I mentioned ASP.NET 5. It DOES NOT target the future release of .Net Classic / .Net Core planned for 2021. The question was asked at the time of the first beta versions of .Net Core 1.0. At this time, it was named ASP.Net 5 / .Net vNext / DNX.
As such, in the original question, please understand version numbers as following :
- ASP.Net 5 => ASP.Net Core 1.0 beta
- ASP.NET MVC 6 => ASP.NET Core MVC 1.0 beta
- Entity Framework 7 => Entity Framework Core 1.0 beta
I am starting a new project in ASP.Net 5 and ASP.NET MVC 6, running on DNX, and started out from the default MVC 6 template of Visual Studio 2015. My data layer uses Entity Framework 7 with the code-first approach.
My Web application project in then in the new approach : xproj file, referencing different json config files (project, solution, npm and bower managers).
As a long time .Net developer, I always had my Data Access Layer in an .Net Assembly projet (or several), then referenced into each of my client-side project (e.g. : a web application, a web API, console applications, or unit testing projects).
My questions are :
- is that still possible (I guess so)
- what is the recommended approach (an assembly project or an internal nuget package)
- how do you set that up (which kind of project template should be used to be working with a xproj web application)