Saving an Object to the Database with EF Core Insert via DbContext
Let's see how to save a new object to the database using Entity Framework Core, with the DbContext handling the Insert transparently. I'll show you the Add and SaveChanges cycle and what actually happens at the SQL level under the hood.