Reputation: 11
I'm creating a new Web Application based on MVC 5. I have Database and would like to Use Database First workflow. I would like to Use Aspnet Identity new features, but they rely on Code First. Will it be possible to mix, so that i manage Authentication and Authorization with the new Aspnet Identity, and Database First for all the Business Logic Application?
Thanks
Upvotes: 1
Views: 322
Reputation: 91
I'm trying to learn MVC and it is quickly pissing me off.
The way I solved this problem is to:
Yes, this means there are two connections to the database. I would love to hear on what is a better way.
Upvotes: 0
Reputation: 51
I think mixing things isn't the best way. code first and data first they have a reason to be different, might be the best way to solve this is to use a database for the authentication process and another database for the busines logic, hope it helps you
Upvotes: 1