Add compatibility with Entity Framework 6

System.Data.Objects.EntityFunctions no longer work with Entity Framework 6.0 .