日期:2014-05-20 浏览次数:20926 次
public IQueryable<YRE_ResidentialAreas> Join() { var p=from a in db.Properties join b in db.ResidentialAreas on a.ResidentialAreaId equals b.Id where a.Price <=100 && a.Floor == 3 select b; return p; } public ActionResult Join() { var areas = Join().[b]Distinct();[/b][color=#FF0000][/color] }
------解决方案--------------------
public ActionResult Join()
{
var areas = rp.Join().Distinct();[b][/b]
}