title: Share model and dbcontext between mvc and console application
body: <p>I have an MVC project and a Console application that use the same database. I currently duplicate the model and dbcontext in both solutions, so I would like to just keep them in one place. I saw similar questions:<a href="https://stackoverflow.com/questions/28673937/how-to-share-a-database-between-asp-net-mvc-5-application-and-net-console-appli">here</a> and <a href="https://stackoverflow.com/questions/17338069/how-to-share-models-between-different-mvc-websites">here</a>. I'm somehow not convinced to using Nuget for this, so I would rather use a class library. I'm not sure though if especially for MVC there would be some downsides of having dbcontext separated from MVC app? Does this make sense and how would I then reference the context from web/app configs?</p>