No, it can't be done (yes - i weep also).
EF does not support batch operations, LINQ-SQL had (has) the same problem.
You've got a few options:
- Stored Procedures
- Classic ADO.NET or EntitySQL
- Triggers
I've gone with option 1 and 3 in the past.
The problem with all three approaches is you lose the EF abstraction, the internal graph (optimistic concurrency), and your brought back to the world of native SQL.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…