我想检查一个行字段值的值,并根据该值运行特定的操作。这个可以做到吗。下面是代码的一部分
public override IEnumerable<Row> Execute(IEnumerable<Row> rows)
{
foreach (Row row in rows)
{
if (row["ProductAction"] == "Update")
{
_updateProductOperation.Execute(rows);
}
else
{
_addProductOperation.Execute(rows);
}
yield return row;
}
}发布于 2012-06-17 22:27:58
有人在另一个论坛上回答了我的问题,如果有人感兴趣的话。他们说,如果一个分支将检查"Update“,另一个将检查!= "Update”,那么您将使用分支操作来完成此操作。
https://stackoverflow.com/questions/11068502
复制相似问题