MikaelEliasson / EntityFramework.Utilities

Provides extensions for EntityFramework that doesn't exist out of the box like delete and update by query and bulk inserts
443 stars 176 forks source link

Update by query: Incorrect syntax near the keyword 'AS'. #105

Open RudeySH opened 7 years ago

RudeySH commented 7 years ago

Are one-to-many relationships, EF's navigation properties, and aggregate functions, supported? I'm currently trying something like this:

EFBatchOperation.For(Context, Context.Users)
    .Where(u => u.RoleCount == 0)
    .Update(u => u.RoleCount, u => u.Roles.Count);