Last post Oct 30, 2017 02:03 AM by Cathy Zou
Oct 27, 2017 02:34 AM|Barsik_The_CaT|LINK
How do I make it work? I found a guide on how to use database-first approach with custom tables, but how do I do it with Identity and Roles tables?
Using a database created by a different person is a must, so I can't use code-first approach, and I don't know what might happen on first compilation when EF will try to create those tables.
Oct 27, 2017 01:12 PM|Mikesdotnetting|LINK
Do you mean that the tables have already been created in the database? What version of EF are you using?
Oct 28, 2017 12:10 AM|Barsik_The_CaT|LINK
Basically, I have a database on Azure, which is supposed to have all Identity tables (roles, claims, users, etc.) and other stuff like products, images, etc. On first build ASP.NET project with EF (I am using Entity Framework 6) creates Identity tables.
What I need to do is either make EF to create those tables on remote database, or create those tables myself and make EF recognize them and not create copies.
Oct 30, 2017 02:03 AM|Cathy Zou|LINK
As far as i know, if you want to database first approach with asp.net identity, you need to create two project. One for getting the asp.net identity tables and second for integrating with your exiting database and add user profile data.
Using this method, you can add User Profile data in a separate UserProfile table (here we have taken Users table) along with AspNetUsers table, while registering a new user
For details about how to do. please refer to the following links: