Я хочу обновить таблицы, используя ExecuteCommand()
следующим образом:
using (var context = new FMDataContext())
{
// how do I execute below two steps in a single transaction?
context.ExecuteCommand("Update Table1 set X = 1 Where Y = 2");
context.ExecuteCommand("Update Table2 set X = 3 Where Y = 4");
}
Существует ответ здесь для этого, но это для EF, я использую Linq To Sql .