I played with the new MVC 5, I have several models, setting up the controller and views using the first code migrations.
My question is, how can I sow users and roles? I am currently using some reference data in the Seed method in Configuration.cs. But it seems to me that user and role tables are not created until something first gets to the AccountController.
I currently have two connection strings, so I can separate my data from my authentication in different databases.
How can I populate user tables, roles, etc. along with my others? And not when I got to the account controller?
asp.net-mvc asp.net-mvc-5 ef-migrations
MrBeanzy Oct 09 '13 at 19:08 2013-10-09 19:08
source share