Create an EF Core Model from Database First (Scaffold DB Context)

preview_player
Показать описание
How do you create an Entity Framework model from an existing SQL database (database first?) In this video I’ll show you how to use the Scaffold DB Context tool available with EF Core to do just that and save tonnes of time.

☕️ Support us with a coffee! (Or.. beer 🍺)

📧 📫 Join us on our developer journey! Sign up to our email newsletter:

🐦 Follow us on Twitter:

🎶 Music by Epidemic Sound:

Icons in this video kindly provided by FlatIcon from Freepik

Disclaimer - some of our links are affiliate links, which means that we receive a small commission for any sales made via those links, at no extra cost to you - so a great way to support our channel! Thank you so much for your support 😊
Рекомендации по теме
Комментарии
Автор

Perfect. This is what I have been looking for. Thank you for saving us !

duyoanuc
Автор

Complete and right to the point. Works like a charm. thanks.

hosseinrostami
Автор

I'm leaving a like under this video not because it's relevant to me, but because the author saved my valuable time with an introduction to the topic of the video. Thank you so much.

snysqqp
Автор

Absolutely precise and very simply explained. Thank you :)

ravs
Автор

Absolutely perfect. Exactly what I wanted. Thanks

simonroyjonesuk
Автор

Thankyou, this is exactly what i am looking for. scaffold... is it is... :)

thangamanieraniyan
Автор

Thank you so much for this content, very clear and usefull

viniciusvilela
Автор

Thanks very much, that was a great help.

NickFletcher-gbne
Автор

What if you only want to build from certain tables and not ALL tables & views?

KevinMullarkey
Автор

this is way more effective than using fluent API in my experience, less bugs and better consistency.

l.piekha
Автор

I have a question, how can I do to map the stored procedures as the previous version of EF

soyponchoc
Автор

Nice. Did you create the CompanyDbContext before running the command?

tobiogunsanya
Автор

I am using Docker to have the SQL Server, when I run the command line to generate lps models with scafffold this gives me errors with the user or sometimes with the certificate

jesusospino
Автор

After doing scaffolding from the existing database if we make further changes in database objects then how we can update models again?

devdevops
Автор

donde están los scripts para solo copiar y modificar ?

robertocarlosgalicialopez