You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: The query will only be run when ToList(), ToEnumerable(), or any of the scalar methods that return 1 value are called (eg. Single, Count etc.)
UpdateMany
Update all of type T using a Where if necessary
varlist=new[]{1,2,3,4};// Update only the Name field using the template User passed // into Execute where the UserId in (1,2,3,4)// If you turn ExecuteDefaults on it won't // set default properties (eg. null, or 0 for int)db.UpdateMany<User>().Where( x =>x.UserId.In(list))//.ExcludeDefaults().OnlyFields(x =>x.Name).Execute(newUser(){Name="test"});
Note: The query will only be run when Execute is called.