Similar to #16 Delete by Query but let you update instead. See that issue for more info.
I'm not going to suggest a syntax here, just show what EFUtilities does.
EFBatchOperation.For(db, db.Comments).Where(x => x.Text == "a").Update(x => x.Reads, x => x.Reads + 1)
Once again the biggest problem is that aliases for joined/subqueried tables is more complicated in updates than selects.
Similar to #16 Delete by Query but let you update instead. See that issue for more info.
I'm not going to suggest a syntax here, just show what EFUtilities does.
Once again the biggest problem is that aliases for joined/subqueried tables is more complicated in updates than selects.