Перейти к содержимому

Entity Framework Core + Blazor - Tutorial for Beginners

Nick Proud

0:00 / 0:00

Entity Framework Core + Blazor - Tutorial for Beginners

26 073 просмотра · 4 года назад
Nick Proud
9,45 тыс. подписчиков
26 073 просмотра · 4 года назад
If you're a c# developer and you've not used it yet, you've probably heard of Entity Framework. Entity Framework is an industry standard Object-Relational Mapping Framework for .NET that allows you interact with SQL through classes in C#, instead of directly executing queries against a database. In this video, I take you through the basics of how EF can be used, with an example of it's implementation in Blazor. Chapters: 00:00 What is EF Core and Why Would We Use It? 02:49 Installing EF Core 04:03 Creating a Db Context 05:42 DbContextFactory and Dependency Injection 07:56 Connection Strings / Creating the DB 12:05 DbSets and Models 15:55 Migrations 25:43 Relations 26:46 Create a Service for Interacting with the Context 30:13 Insert a New Record 33:10 End Example - Inserting a Customer to the DB via a Form 41:23 Save Changes to DB 43:32 Get Records from DB 47:00 Update Records within DB 50:19 Remove Records from DB #dotnet #entityframework #entityframeworkcore #csharp #blazor #tutorial