3

Closed

Math.Truncate is not mapped in Linq, even though we have canonical function for it

description

Calling Math.Truncate function calls not supported exception. This should be supported, since we have a canonical function Truncate for this purpose.
Closed Apr 17, 2013 at 9:39 PM by maumar

comments

RoMiller wrote Feb 22, 2013 at 6:55 PM

Removing comment about lack of EntityFunctions in EF6 - they are present but have been renamed to DbFunctions. We have an issue to consider renaming them back to EntityFunctions since this is confusing - http://entityframework.codeplex.com/workitem/832

Assigning to Future release to consider once EF6 is shipped.

divega wrote Apr 13, 2013 at 1:06 AM

@IDisposable, are you planning to send a pull request for this?

ajcvickers wrote Apr 17, 2013 at 12:26 AM

Fixed in 63dea73c7ce3 by Marc Brooks committed by ajcvickers

Pull request for 854: Math.Truncate is not mapped in Linq, even though we have canonical function for it

Fix translates Math.Truncate(x) for decimals and doubles to canonical method Truncate(x, 0).

maumar wrote Apr 17, 2013 at 9:39 PM

Added more tests in 63dea73