views:

34

answers:

0

I write the following code with entity framework

context.AddObject(obj1);

context.AddObject(obj2);

context.DeleteObject(obj3);

context.SaveChanges();

The last command issue multiple sql command in separate branches, it seems to be is not efficient at all, is there a option to send all command in a single batch?

Thanks