【发布时间】:2017-04-30 12:35:39
【问题描述】:
我有两个数据表 DurationByCurrency(在数据集内)和 Fund,如下所示
我想通过执行连接删除 Duration By Currency 数据表中 FundCode 在 Fund Dt 中的值为 2 的行。
var result = from table1 in raptorDS.Tables[RaptorTable.DurationByCurrency].AsEnumerable()
join table2 in fundDT.AsEnumerable()
on table1.Field<string>("FundCode") equals table2.Field<string>("FundCode") into ps
from row in ps.DefaultIfEmpty()
{
//delete query
}
请帮助我,因为我是 LINQ 新手。
【问题讨论】: