HiLoValueGenerator.GetNewLowValueAsync never gets called #19420
Labels
area-change-tracking
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-bug
Milestone
Looks like
HiLoValueGenerator.GetNewLowValueAsync
never get called. InsteadGetNewLowValue
always gets called because of the bug inHiLoValueGenerator
.Looks like
HiLoValueGenerator
overrides the worng pair of methods:Next
/NextAsync
instead ofNextValue
/NextValueAsync
. Having 2 pairs of overridable methods is really confusing, I guess that's why this mistake was made.Steps to reproduce
Configure your own
HiLoValueGenerator
, then try calling_dbContext.AddAsync()
.Expected:
GetNewLowValueAsync
gets called.Actual:
GetNewLowValue
gets called instead. Stack trace:Further technical details
EF Core version: 3.1.0
Target framework: .NET Core 3.1
The text was updated successfully, but these errors were encountered: