In Visual Studio Community 2015 RC, I opened an ASP.NET MVC project for "individual user accounts," which uses the Microsoft.AspNet.Identity framework to create and manage users, logins, roles and permissions. It uses ASP.NET MVC 5.2 and Entity Framework version 6.
It appears that the only way to add something to this Microsoft created database is using the code first approach by first enabling migrations in the project, adding members to the DbContext
inherited class and then running the update-database
command at the PowerShell / Nuget package manager console. That does update the SQL Server database with the changes I made in my C# code.
However, is there a way to do the opposite? That is, to have changes that you made to the SQL Server database also reflect in your DbContext and code everywhere else? It appears that there isnt. This is a one-way street. I tried making some changes, and running the update-database
command again but nothing happened.