CreateFunction("ef_days", (TimeSpan value) => value.TotalDays);
CreateFunction("ef_timespan", (double value) => TimeSpan.FromDays(value));
Assert.Equal() Failure
Expected: 00:01:00
Actual: 00:00:59.9999964
In order to get this to round to the correct time we need to re-create the TimeSpan (and possibly DateTime) instances in various places using a constructor overload that doesn't take double
.
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
label
Sep 11, 2020
punted-for-7.0
Originally planned for the EF Core 7.0 (EF7) release, but moved out due to resource constraints.
and removed
propose-punt
labels
Apr 23, 2022
Check for custom sql translation defined on C# special methods: op_LessThan, op_GreaterThan, etc.
#32227
punted-for-7.0
Originally planned for the EF Core 7.0 (EF7) release, but moved out due to resource constraints.
type-enhancement