Unable to create a constant value of type (type) Only primitive types ('such as Int32, String, and Guid') are supported in this context

前端 未结 4 644
离开以前
离开以前 2020-12-11 02:29

I\'ve read ALL of:

  • Unable to create a constant value of type 'System.Object' in Entity Framework

  • Entity Framework - "Unable to

4条回答
  •  -上瘾入骨i
    2020-12-11 03:08

    I ran into a similar problem, and instead of IQueryable, I tried using List, and it worked. May be of some help.

提交回复
热议问题