Use Action Filters to cut down your context.SaveChanges calls

added by DotNetKicks
11/19/2018 5:19:19 PM

1 Kicks, 2512 Views

If you use Entity Framework Core you will probably find yourself writing something like this over and over and over again... context.SaveChangesAsync(); Where context refers to an instance of your Entity Framework Database Context. This raises a few problems. First of all it's way too easy to forget and wind up spending minutes (or even hours!)