-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
C# 14 and .NET 10 – Modern Cross-Platform Development Fundamentals - Tenth Edition
By :
This chapter is about reading from and writing to relational data stores, such as SQLite and SQL Server, by using the object-to-data store mapping technology named Entity Framework Core (EF Core).
All code examples are shown in a console app and use synchronous code. This is best for learning EF Core because it keeps the code as simple as possible and focuses on the topic covered, but once you need to implement EF Core in a server-side project, such as an ASP.NET Core Web API project, it is important to use asynchronous code to avoid thread exhaustion. For example, instead of calling ToList, call ToListAsync, and instead of calling SaveChanges, call SaveChangesAsync.
This chapter will cover the following topics: