Specified cast not valid
when using min or max after decimal to float cast
#10537
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
Casting from decimal to float before a
Min()
orMax()
throws an exception with aspecified cast not valid
message and the following stack trace:The bug can be recreated with the following code:
.Sum()
works fine. Also.Skip(0).Min()
seems to be a workaround, oddly enough.Further technical details
EF Core version: 2.0.1
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: Windows 10
IDE: Visual Studio 2017 15.4
The text was updated successfully, but these errors were encountered: