c.Number) .Select(z => z.LastName)错误信息:
Unableto create a constantvalue of type 'XXX.Models.Mt.MTM'.Onlyprimitive types or enumeration types are supported in this
where x.Tile == SelectedTileObj但我得到了一个错误,如下所述:
Unableto create a constantvalue of type 'Data.Tiles'.Onlyprimitive types or enumeration types are supported in this context.
award in awards on comment.AwardId equals award.Id select comment).ToList();
我使用上面的代码获取与奖励相关的注释,但我得到的是错误Unableto create a constantvalue of type Data.Awards.Onlyprimitive types or enumeration types are supported in this context
select i).FirstOrDefault()但我得到了一个NotSupportedException:
"Unableto create a constantvalue of type (ID) Onlyprimitive types ('such as Int32, String, and Guid') are
例外:Unable to create a constantvalue of type 'AppDB.Stage.Rules'.Onlyprimitive types or enumeration types are supported in this context.rules.ToList().Any(r => r.type1 == q.type1 || r.type2 == q.<
cl.Where(c => c.Received.Equals(false));Exception Details: System.NotSupportedException: Unableto create a constantvalue
of type 'System.Object'.Onlyprimitive types ('such as Int32, String, and
= null && y.Contact.Id == x.ContactId)))当我运行第二条语句时,我得到的是错误:
Unable to create a constantvalue of type 'CR.Data.JobPortalInfo'.Onlyprimitive types or enumeration types are supported in this context.
select contract.SomeDateTime;如果我称contractsStartDate.Min()为异常,则会发生以下情况:
Unableto create a null constantvalue of type 'System.Collections.Generic.IEnumerable`1'.Only entity types, enumeration types or primitive types are supp
使用运行时错误:
Unable to create a constantvalue of type 'System.Object'.Onlyprimitive types ('such as Int32, String, and Guid') are supported in this context.
错误消息:
"Unable to create a constantvalue of type 'SmallBusinessManager.Models.TransactionAllocation'.Onlyprimitive types ('such as Int32, String, and Guid') are supported in this context."