.NET 7 🚀 Entity Framework / EF7: Install & Code First Migrations

preview_player
Показать описание


Table of Contents:
00:00 .NET 7 🚀 Entity Framework / EF7: Install & Code First Migrations
02:33 Create a Web API Project (and download the .NET 7 Preview SDK)
05:01 Create the DataContext & Install the necessary packages
08:08 Install the dotnet ef tools
09:49 Write the DataContext Code
10:47 The ConnectionString
13:48 Start with Code-First Migrations
19:56 Quick Recap

🙏MANY THANKS TO THESE LOVELY PEOPLE:
Rakesh Bridgraj
Joaquim
Ralf Kürbitz
@jacoviza
Thomas McMeekin
Ameet Jayawant
JesperNielsen
Paul
@Alaffer
Alvin Majid
Slava Ukrayini
Piotr Franczak
Jan Trichter
Tom
H. Ali
Ashley Gahl
Daniel Viveros
Mehmet Ali Ege
Winther
harry j
@Alaffer
Sam Catlow
Jim
Brian Williams
Gonzo
Jonas
Ariel Sartor
Andy Benson
@stevelikespies
Raphael Lukas
James Goforth
@williamdevine
Doug Nelson
Arif Hasanov
@kohji1712
@dlb78dlb
Thomas Korsgaard
FastTrak
Jeff Sager
Dan Moyer
AlgoMarket
Mennskr
Simon
Michael Mel
Hermann Rösch
Jim McNeal
Kieron
@mgrainger231
Gerrit Esmeijer
Axel
Kareem Skinner
Joaquim
Alain Legrand
Per Rieland
@prodrigu75
Greg
Brendan Maunder
Stageoner
Andrew Campbell
pascalditzfeld
PovilasSimanskas
jenö
Marco Otilli
Mark
l33ter
alibux
Luke Vincent
mrcl
Alain Legrand
Thomas Werner
István Csibor
Grant Burdon
@gianluigiconti
Gerrit Esmeijer
Illia
Németh-Pók István
Michael Mel
Marko Zdilar
GerryB
@DADA_universe
Domen Hren
@heroesch
Carey
Peter De Tender
Baris Keskin
@Big_Bear_27390
Mathias
walter e watkins
Günther Dassel
Axel
Josh
Daniel Huber
Fredric Adell
Juan Carlos
Manolis
Pajani
P.
Jonas Granlund
Bobby
Kristina
@xamarin007

#DotNet #EfCore #PatrickGod
Рекомендации по теме
Комментарии
Автор

After binge watching probably 11 videos i think this might be one of the best tutorial channels ever. Thank you!
Keep up the good work.

mrslashman
Автор

Hi Patrick, Thanks for a great video. This solved my error codes going on for a couple of days, I got an existing EF project, but never manage to make it work with on my VM visual studio 2022 arm64, your video did the trick, small changes since I use an online SQL, thanks :)

oceng_dbo
Автор

Always stay with Dapper, for me is the best microORM.

LuigiZambetti
Автор

Hello Patrick. Thank you so much. Do you have any videos including SQL RAW?

joelambert
Автор

Hi patrick! I've been learning from your videos for a couple of months, I really appreciate it.
I would like to ask you if you could do a tutorial about "how to do push notifications from backend in .NET Core 6". Thank you!!!

jesusferrufino
Автор

@patrick ... do you have a video of "Database First"? I'm strugling to figure out Database First with EF (including procedures etc). Thanks

MrMorajo
Автор

Hi, thank you very much for those useful videos,
Could you make a short quick video about Repository + Service + Unit Of Work .
what is the correct approach, we are confused, should we only inject the ServiceWrapper with Lazy ?

amralmotalles
Автор

thanks alot, you're a wonderful ❤️ . it's very helpful thank you

fawaz
Автор

Hello Patrick and everyone...one question... If I have a object SoccerTeam with a list of Player.. when I post a object of SoccerTeam do I need to get the players object before insert or just insert a object with on Id field filled ?

gabrielsouza
Автор

Just what i needed!! The 'code first' data project option no longer a thing in Visual Studio it appears 😕

jeffschwartz
Автор

Thank you for your great video, i am a little confused, what is difference between 'dotnet ef' and 'entityframeworkcore.tools' ? would it be ok if i use another one?

hamidsalarmoradi
Автор

Also fur einen deutschen sprichst du ziemlich gut Englisch! Der deutsche Background ist jedoch nicht überhörbar 😃. Danke fur das tolle Video! 👌

rabenstein
Автор

how do i handle this error when using a rich domainmodel?

No suitable constructor was found for entity type 'User'. The following constructors had parameters that could not be bound to properties of the entity type:

oliverigor
Автор

just a question, in dot net 5 i was writing the connection string at appsetting.json but in dot net 7 i tried to do that but it doesen't work with me
then i use your way to make a migration and its working

The question is: Is there any difference between them(the placce of connection string) in terms of safety and secure?

uqzqhln
Автор

I could be wrong, but I think there are errors when trying to create a controller in ef 7. At least, I had issues.

habibi
Автор

Hello, tutorial for use Entity Framework Power Tools ?

Totti
Автор

Hello Patrick! Thanks so much for the video as always, I couldn't find the Skillshare Authentication and authorization on Udemy for you! Can you make it available please there! I'd prefer Udemy than Skillshare thanks again brother! ❤️

sherifezzat
Автор

please sir can you make complete guide of identity framework with ef, it will be highly appreciated, thanks.

sameershahbaz
Автор

Hello Patrick, as always you were very clear and precise but ... What happened to your hair?😁

tonyeps
Автор

Here we are on RC4 of .NET 8.0.
Will it be a preview forever or will it actually become a full release?
He screams for he does not know.

JustPlainRob