EntityFramework.Utilities icon indicating copy to clipboard operation
EntityFramework.Utilities copied to clipboard

Make batch operations work with joins or throw proper exception

Open MikaelEliasson opened this issue 9 years ago • 0 comments

Right now a call like this:

EFBatchOperation.For(db, db.InvoicePayments).Where(x => x.Invoice.OrgNumber == c.OrgNumber).Delete();

Result in exception about a missing alias because the alias is not properly defined when grabbing the WHERE part from the query.

Investigate if this can be fixed or provide a better exception.

MikaelEliasson avatar Nov 17 '14 09:11 MikaelEliasson