代码bdehind&&语法不起作用,有什么想法吗?
Entities ctx3 = new Entities();
var uniqueQuote = from quot in ctx3.Quotes.Include("aspnet_Users").Include("Enquiries")
where quot.Enquiries.EnquiryId == selectedEnquiryId &&
quot.aspnet_Users.UserId == currentUserId
orderby quot.QuotePrice
select quot;
错误2委托'System.Func'不带'1'参数C:\ LocalGarageFinder \ LocalGarageFinder \ EnquiryDetail.aspx.cs 56 33 LocalGarageFinder
答案 0 :(得分:3)
编写的代码很好。如果您收到某种错误,请告诉我们。
答案 1 :(得分:3)
如果EnquiryId或UserId是Nullable类型,您将收到错误。使用EnquiryId.Value == selectedEnquiryId或UserId.Value == currentUserId