You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've verified that Freight column in Orders table is of type float?. In VS2015, I've hover over ord.Freight in the above query to confirm the type of Freight column - that's is showing as float?
I've tried changing var to float? and double? and decimal?. But still the EXACT SAME error message as shown above.
The text was updated successfully, but these errors were encountered:
Environment: EF-Core 1.1, VS2015, Windows 10 (updated from Windows 7)
I'm getting the following error on LINQ Query shown below:
Unable to cast object of type 'System.Double' to type 'System.Nullable
1[System.Single]'`LINQ:
var
totalFreight = (from cust in db.Customers join ord in db.Orders on cust.ordID equals ord.OrdID select ord.Freight).Sum();
NOTES:
I'm trying to follow these MSDN examples: 1 and 2
I've verified that
Freight
column in Orders table is of typefloat?
. In VS2015, I've hover overord.Freight
in the above query to confirm the type ofFreight
column - that's is showing asfloat?
I've tried changing
var
tofloat?
anddouble?
anddecimal?
. But still the EXACT SAME error message as shown above.The text was updated successfully, but these errors were encountered: