我尝试执行以下加入:
var collection = from t1 in dt1.AsEnumerable()
join t2 in dt2.AsEnumerable()
on new {
t1.["main_code"],
t1["year"]}
equals new {
t2["dep_code"],
t2["dep_year"] }
select new {
emp_name = t1["name"],
bonus_desc = t1["bonus_desc"],
dep_name = t2["dep_name"] };
但我面临以下构建错误!
无效的匿名类型成员声明符