Entity Framework 4.1 Batch Updates
问题 I'm doing some work with EF 4.1 and I'd like to perform a batch update on 3 tables (for the purpose of implementing a soft delete). From doing some quick research it looks like direct SQL queries are best. My implementation is below and I was hoping for some feedback on whether this is best practice. Thanks for the help ... using (var scope = new TransactionScope()) { using (var db = new TimeCatchDb()) { db.Database.ExecuteSqlCommand("UPDATE EmployeeRecords SET Deleted = 1 WHERE NoteTypeId =