在代码 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 委托(delegate)“System.Func”不接受“1”参数 C:\LocalGarageFinder\LocalGarageFinder\EnquiryDetail.aspx.cs 56 33 LocalGarageFinder
最佳答案
代码写得很好。如果您收到某种错误,请告诉我们。
关于asp.net - Linq to 实体多个 WHERE 子句 &&,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2311872/