dotnet / dotnet/EntityFramework.ApiDocs
SaveChangesAsync() doc page
- Dominant language
- No language data
- Stars
- 17
- Forks
- 49
- PR merge metrics
- No merged PRs in 30d
Description
Moved from https://github.com/aspnet/EntityFrameworkCore/issues/12751 posted by @erictrigo
Check out: https://docs.microsoft.com/en-us/dotnet/api/microsoft.entityframeworkcore.dbcontext.savechangesasync?view=efcore-2.1
Says signature for SaveChangesAsync is
`public virtual System.Threading.Tasks.Task SaveChangesAsync (System.Threading.CancellationToken cancellationToken = null);`
If you try overriding SaveChangesAsync using the above example, it'll give you the following error:

Using `default(CancellationToken)` instead of `null` solves the issue:
`public override async Task SaveChangesAsync(CancellationToken cancellationToken = default(CancellationToken))`
Contributor guide
Assessment
This issue has not been assessed yet.