Entity Framework Code-First Migration Mistakes in .NET 8 & How to Fix Them 💡

  Рет қаралды 4,777

Patrick God

Patrick God

Күн бұрын

🚀 Join the .NET Web Academy: dotnetwebacade...
💻 Use Code LONGERNIGHTS to get 20% off on any course or plan!
💖 Support me on Patreon for exclusive source code access: / _patrickgod
🚀 Get the .NET 8 Web Dev Jump-Start Course for FREE: dotnet8.patric...
🐦 Let's get social on Twitter/X: / _patrickgod
🔗 Let's connect on LinkedIn: / patrickgod
#DotNet #AspNetCore #EntityFramework

Пікірлер: 23
@KNPhilip
@KNPhilip 6 ай бұрын
Awesome to see :D Thanks again for helping me out with this little pitfall :)
@PatrickGod
@PatrickGod 6 ай бұрын
Happy to help! Thank you so much for being part of the .NET Web Academy Community! 😘
@engincan4336
@engincan4336 2 ай бұрын
Could you please use word-wrap in your project? Thanks your videos.
@stewtech
@stewtech 6 ай бұрын
More migration tutorials needed, everytime I follow one of your tutorials the migrations do not work.
@Beji-boy
@Beji-boy 6 ай бұрын
I'm a little disappointed in you that Udemy courses are not maintained. For example, Blazor stayed on .NET 6 :( I find it a little bit disappointing that it is not maintained when people buy or purchase the course.
@pilotboba
@pilotboba 6 ай бұрын
I will say the EF team has said don't use the in-memory database provider. 100% don't use it for dev if you are deploying to SQL Server. It's just not the same. You should always dev, test with the same provider you deploy with.
@KNPhilip
@KNPhilip 6 ай бұрын
Of course you would test with the same SQL DB in dev before deploying, but for getting small APIs up and running while going through a course in the sandbox, I think it's fine :)
@pilotboba
@pilotboba 6 ай бұрын
​@@KNPhilipI'm just telling you what they said. Even for those small API/Sandbox they said your much better choice is SQLite. Because it's a "REAL" SQL engine, which InMemory is not. They said releasing the provider was a huge mistake and caused people nothing but heartache. But, you do you.
@KNPhilip
@KNPhilip 6 ай бұрын
@@pilotboba I'm curious to dive more into why. Can you tell me who "they" are and where I can find the discussion about that? :)
@pilotboba
@pilotboba 6 ай бұрын
@@KNPhilipThey being the EF team, AJ Vickers and Shay Rojansky. I watch all the EF Community standups and they have said it several times.
@KNPhilip
@KNPhilip 6 ай бұрын
Ok, I was not aware of that. Thanks for the heads up.
@Mrky845
@Mrky845 6 ай бұрын
I try this but i try to connect the SQL ,bUT IT THROW Format of the initialization string does not conform to specification starting at index 0.
@anindagiri5384
@anindagiri5384 6 ай бұрын
Hi Patrick Your all video so infomative and i have learn lots, thanks you soo much. I have one doubt related version upgrade. Let me tell you little background, actually i have one existing webapplication which is .net core(2.2) with EF and also used OData service but i want to upgrade that to the latest version. But i am not able to do its showing many error basically its stuck in Odata service routing part, can you please help me on that if possible
@anomalii7720
@anomalii7720 5 ай бұрын
You shouldn't have the connectionstring in your presentation project. That is the big problem these days.
@Together4Ever96
@Together4Ever96 6 ай бұрын
Thanks, great content :) Can you make movie how to deploy Blazor Web App on Azure ?
@The-Z-Zone
@The-Z-Zone 6 ай бұрын
The second issue seems to be more isolated to Visual Studio. Using the command line tools is a lot less forgiving and you get use to jumping into each of the project directories before running the dotnet command. I liked the primary constructor use. Didn't even know it existed and will have to give it a try.
@AndrewMorison_morrie
@AndrewMorison_morrie 6 ай бұрын
Thanks.. As a beginner C# programmer, I got trapped with this one myself.. So thanks for explaining why.
@PatrickGod
@PatrickGod 6 ай бұрын
Glad it helped! Thanks for your feedback! 😊
@usamasuhaib3019
@usamasuhaib3019 6 ай бұрын
awesome :D, can you make a video for simple chatting app with singnalR using User Identity? please
@aarohivishwakarma-d2y
@aarohivishwakarma-d2y 6 ай бұрын
Thanks for this video.. can you help me for that how to secure my API'S with api key..and how to create API key for more security
@marceloleoncaceres6826
@marceloleoncaceres6826 6 ай бұрын
Thanks for the video, it was great for me
Please Help This Poor Boy 🙏
00:40
Alan Chikin Chow
Рет қаралды 11 МЛН
Don't Use Polly in .NET Directly. Use this instead!
14:58
Nick Chapsas
Рет қаралды 63 М.
What Are Your Thoughts on Entity Framework Core vs. Dapper?
21:49
CQRS & MediatR in a .NET 8 Web API 🚀
22:00
Patrick God
Рет қаралды 10 М.
.NET and C# are in trouble. Here is what I'd do.
10:57
Ed Andersen
Рет қаралды 71 М.
Authorization using Roles with Blazor & Identity in .NET 8 🔐
17:45
The standard library now has all you need for advanced routing in Go.
13:52
Stop Using FirstOrDefault in .NET! | Code Cop #021
12:54
Nick Chapsas
Рет қаралды 71 М.
Entity Framework Migrations Explained
36:53
dotnet
Рет қаралды 31 М.