LINQ to Entities does not recognize the method 'System.String StringConvert(System.Nullable`1[System.Double])

后端 未结 2 646
谎友^
谎友^ 2020-12-10 03:21

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

2条回答
  •  醉梦人生
    2020-12-10 03:49

    You don't have to convert it to string, string concatenation will take care of that.

    AnncTitle = n.AnncTitle + " ",
    

    You don't have to call ToString as well.

提交回复
热议问题