Updating multiple tables with LINQ and ASP.NET MVC
Just quick, I'm just looking for a little clarification.
I want to update multiple tables from a single Create action before I try it, I'm just wondering if I can just do the following:
db.hdCalls.InsertOnSubmit(a)
db.hdCustomers.InsertOnSubmit(b)
db.hdAssign.InsertOnSubmit(c)
db.SubmitChanges()
Or is it a little more complicated than that?
+2
source to share
2 answers