Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can EF4 support batch updates?

Does Entity Framework v4 support batch updates/inserts so rather than sending >1 command to a db, it can send >1 command to the DB in one go?

Thanks

like image 819
GurdeepS Avatar asked Apr 27 '10 11:04

GurdeepS


2 Answers

I don't believe that has changed. You have the options of:

  • Stored Procedures
  • Stuff like this article
  • Using T-Sql like in the answer of this question
like image 92
Tim Hoolihan Avatar answered Oct 28 '22 23:10

Tim Hoolihan


I discovered a good answer to this question here: Paul Welter shows how to use EntityFramework.Extended

like image 1
dugbugs Avatar answered Oct 29 '22 01:10

dugbugs