这让我感到困惑,我在以下LINQ中加入了标题错误:
var r = (from k in location.tblKeyAccountInfoes join l in location.tblLocations on new { k.MemberID,k.LocationID } equals new {l.MemberId,l.LocationId } where k.MemberID == memberid && k.UserName == username select l.LocationName); return r.ToString();
但是,MemberId和LocationId的类型是一样的,所以我不知道我做错了什么.
任何指针都感激不尽.