Asp.Net Core MVC - Can I move Identity and DataAccess to class library
asp.net-core-mvc
Solution
Sure, check out the Dev branch on https://github.com/MachUpskillingFY17/JabbR-Core we just moved all data into a separate library including identity. Its still quite a work in progress, but it absolutely works.
Problem
I have created an ASP.NET Core MVC Web application with Individual User Account authentication (Identity). The template has created one Web project, with a whole bunch of folders, including a "Data" folder which has the migrations for the Identity schema, and ApplicationDbContext. Now, I have some other projects alongside the web app which will need to consume the data. I don't want them to reference the web project for obvious reasons. And ideally I don't want my web project to depend directly on EF. Can I move the data access into a separate class library? And if so, how!?