错误截图:
应该是这样:
List<price> price1 = db.price.ToList();
List<channel> channel1 = db.channel.ToList();
var innerJoinQuery =
from a in price1
join b in channel1 on a.ChannelId equals b.ChannelId
select new { ChannelId = a.ChannelId, ChannelName = b.ChannelName };