I can\'t figure out why I\'m getting this error. I have used this function successfully with previous versions of Entity Framework but I\'ve set up a new project using EF6 a
I had the same problem and realized that I was using the wrong type of SqlFunctions. Make sure that you referenced the correct namespace:
using System.Data.Entity.SqlServer;
and not:
using System.Data.Objects.SqlClient;