linq batch update data

Check out some entity query

The following settings

// set modification status
 context.Entry(query).State = EntityState.Modified;  

 

Guess you like

Origin www.cnblogs.com/LessIsMoreZ/p/12605203.html