Tag - #entityframework #transactions #dotnet #efcore #ai #ml

Related Data Loading using EF Core – Part 3

  In previous parts of related data loading we have seen how Eager and Explicit Loading works in EF Core. In this part we will cover brief details on Laze Loading technique. Lazy Loading in EF Core : Lazy loading is a technique of loading of related data by delaying it, until we specifically request for it.For example, Let's assume a Employee...

Related Data Loading using EF Core – Part 2

In part 1 of related data loading series we have seen how Eager Loading works. This is part 2 of the series and we will cover Explicit Loading in this part. Explicit Loading in EF Core : Explicit Loading is a technique of loading related data entities with an explicit call. It means that the related data is explicitly loaded...

Related Data Loading using EF Core – Part 1

In few of previous posts we have seen how Transaction management can be handled using EF Core. Let's now understand different ways by which data can be loaded using EF Core. There are basically 3 common patterns to load the related data. 1. Eager Loading 2. Explicit Loading 3. Lazy Loading This is Part 1 of related Data Loading patterns and we will cover...

Using transactions in entity framework core

A database transaction is a sequence of multiple operations performed on a database, and all served as a single logical unit of work. If the transaction is committed, all of the operations are successfully committed to the database. If the transaction is rolled back, none of the operations are committed to the database. In Entity Framework, the SaveChanges() method is...