因此,我正在执行一个SelectMany查询以循环访问集合中对象内部的列表。这是我的查询:varcollection=_database.GetCollection(VehiclesCollection);varaggregation=collection.AsQueryable().SelectMany(v=>v.VehicleEntries).Where(i=>Convert.ToInt32(i.PostFlashDTCs)>0).ToList();但是,每次我运行它时,我都会收到以下错误:Afirstchanceexceptionoftype'System.InvalidOper