我使用返回匿名类型的linq连接四个表,使用此linq查询从多个表返回结果的最佳方法是什么?以及如何使用匿名类型对象填充listview?
var Hofid=2
var query = from HOF in conn.Table<hof>()
join UC in conn.Table<uc>() on HOF.UCID equals UC.UCID
join CITY in conn.Table<city>() on UC.CITYID equals CITY.CITYID
join Dis in conn.Table<district>() on CITY.DISTTID equals Dis.DISTTID
where HOF.HOFID == Hofid
. select new
{ CNICNO = HOF.HOFID, HOFNAME = HOF.Name,DISTRICT = Dis.Dist_Name,UC = UC.UC_Name, CITY = CITY.city_Name}