/// <summary> /// Implementation (wraps SaveChangesAsync from Entity Framework in case their methods change. Centralized place here to update their saveasync for example or any other implementation) /// /// EF Core SaveChangesAsync: /// This method will automatically call EF Core's DetectChanges() to discover any changes to entity instances before saving to the underlying database. This can be disabled via AutoDetectChangesEnabled. /// </summary> /// <returns></returns> public async Task <int> SaveChangesAsync() { return(await _context.SaveChangesAsync()); }