SaveChanges: Database.SetCommandTimeout overload that accepts a TimeSpan argument #6614
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-enhancement
Milestone
Int32
is ambiguous (milliseconds, seconds, minutes?) and shouldn't be used as a type when you really want a duration. Instead,TimeSpan
should be used.https://github.com/aspnet/EntityFramework/blob/master/src/Microsoft.EntityFrameworkCore.Relational/RelationalDatabaseFacadeExtensions.cs#L156
I don't mind submitting a PR for this, though I'm not sure what the proper deprecation strategy is for this project. Create an overload and somehow annotate the old one? Leave the old one and new one side-by-side (personally not a fan of this one)? A doc comment on the old one indicating it is deprecated? Delete the old one and accept the breaking change?
https://github.com/aspnet/EntityFramework/blob/master/src/Microsoft.EntityFrameworkCore.Relational/RelationalDatabaseFacadeExtensions.cs#L159 should similarly return a
TimeSpan
, not anInt32
.The text was updated successfully, but these errors were encountered: