ASP.NET Core Web API .NET 6 2022 - 4. Installing Entity Framework

preview_player
Показать описание
ASP.NET Core Web API .NET 6 2022 - 4. Installing Entity Framework

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

Man, i hate it when people say "just copy paste it" without at least explaining it a little bit. Lets stick to the most important error for this: the seed from the github repo is the FINISHED seed of the project (i assume), which is incompatable with the current status of the project (e.g. reviews suddenly have ratings, owners have first and last names etc). If some1 has trouble with it, either remove incompatabilities from the seed code or add those to the models.

Kyrathos
Автор

When I ran the Add-Migration InitialCreate command I got an error. I installed the Microsoft.EntityFrameworkCore and the nuggets and everything work. You forgot to install those two. All in all the nuggets I have are :

Microsoft.EntityFrameworkCore



Swashbuckle.AspNetCore

mbulelo-damba
Автор

1:03 Create DB
2:00 Get a connection string
24:11 Finally someone showed me how to find terminal in Visual Studio :)

kirillzlobin
Автор

remember watching this a year ago and thinking "WTF, how am I ever gonna learn this?". Now, I've just popped back to recap on fluent api many to manys. You're a star, Teddy and to anyone else thinking "How the f**k am I gonna learn this?", you WILL understand it. Just keep practicing under the guidance of Don Ted ;)

raggardy
Автор

Dude.. the SQL Server Object Explorer, total diamond right there. Love the tip!

deepazure
Автор

Your tutorials are really enterprise level, most other content creators don't do this on this level, they'll just give it from a locally perspective, I bet you get into design patterns too 🔥

SnippetSurfer
Автор

Decided to load my data directly into the database before starting the application build, SQL is easy and it's so much easier to do this at database level rather than scripting something into the application. But good to see that you've used a different way which will help people who lack SQL skills!

Mooseontheloose
Автор

it works, I had some issues when running the Add-migration InitialCreate command -- after googling I found that I had the connection string spell wrong, but I made it . I proud of myself.

Thanks for watching hahaha- like teddy said

franciscoseverino
Автор

Guys if you have a problem with your Add-Migration and nothing helps, make sure you delete the stuff in your Controllers folder in solution explorer. I forgot to delete the WeatherForecast default app controller and it messed up my build

dataStream
Автор

I've spent weeks trying to watch how to connect to database... and everywhere i was getting some kind of error. but with you it was so easy!

Console.WriteLine
Автор

Dude the connection string thing was massive. Love your channel bro. Keep it up.

manuelbacallao
Автор

This is the best explanation of EF core that I have ever seen. Thank you!

nettech
Автор

This was super helpful. I was searching for over 2 days and here's everything I wanted

tebogolem
Автор

For those of you watching who might have trouble hooking up your local server or logging into your local server you have to set "Trust Server Certificate" to "True" when prompted.

rotface
Автор

Teddy, thank you man! You have no idea how helpful I'm finding your content to be!

trashbin
Автор

OMG Your tips to the databases (connection string) was so amazing. Love you good works, thank you!

phungquanglong
Автор

this is the best tutorial I've found so far. As another said this is enterprise level and cover a lot of topics. Nice

witChaos
Автор

For anyone unable to add the SQL server in Visual Studio with an error that says cannot connect or find the SQL server, your connection name may not be the same as the Name in the property window. Instead, click on the "View Connection Properties" in the Server Properties window, and copy the server name instead. Put that in the "Server name" in the connect window in VS

hanchen
Автор

I had my troubles with the Rating in the Seed file, but I managed to put it in the PokemonReview model class. Nice little test you put in there

Manuel_Roos
Автор

If you get an error after doing everything correct, in .csproj file of your project, change the InvariantGlobalization to false

spencersedano