Add Identity to Entity Framework Database-First Projects [DotNet 6]

preview_player
Показать описание
Add identity in dotnet 6 to a new or existing project, and use a single dbcontext. Building out your application data via database first and your identity via code first doesn't prevent you from making some tweaks to share the context and build out your application. Watch this video to see how!
Рекомендации по теме
Комментарии
Автор

After over 30 minutes of instructions, I'm still trying to figure out how this will apply to my life. 😁 Love You, Bro.

PIMARINE
Автор

Spent roughly 7 hours trying to fix this issue and found very little or no help in all the main discussion forums... This video finally saved me. I appreciate you!

tysoncruz
Автор

This really helped med, this was exactly what I searched for.

karimishaahin
Автор

Hey thanks for the video, I think I finally found what I need. I'll follow it tomorrow :)

emiel
Автор

Hi, I did exactly as followed but at 10:12 I don't have the Index.cshtml in the Pages folder. I only have the _ViewImports.cshtml and _ViewStart.cshtml. Where ist he problem?

drenibrahimi
Автор

7:11 my context is still confused it red underlinings... what did i miss ?

TheBerdu
Автор

Hi, I tried adding the base.OnModelCreating(builder) from Identity context to the model context, but received an error “Cannot use local variable or local function 'builder' declared in a top-level statement in this context” any pointers much appreciated.

tombruce
Автор

Is it possible to do the reverse? Add ef core to an identity project?

TheComicWonder
Автор

Thank you. Can you please show as how to create relationship between "AspNetUsers" table and any other custom table?

sultanal-zoubi
Автор

Thank you so much brother, This video helped me to solve my problem because I wanna add identity with database-first. But I want to add a column in a table inside Nortwind database how should I do it? I tried to force Scaffold-DbContext but it clearly identity context that we added last time. any suggestion brother?

chuovechet
Автор

Kindley, show us how to alter any existing table (rather than Identity ones) and how to reflect the changes into the existing db?

sultanal-zoubi
Автор

Thank you. I have been looking for this for a long time. It is simple to follow. Next thing is how you deploy this to IIS?.
I have similar app and it fails when I access to the localhost. It failed and the error is https 500 (duende identity server). I cannot remember exactly the error stated. I can provide you the error and my code in my git if you would like too. Thanks.

tongphou
Автор

If you have any issues with deployment, let me know. I have to mod web.config to make it to work. I will show you how.

tongphou
Автор

Thank you, the content is excellent, could you share the code with us?

victorchoe