c# mongodb builders update two fields at once code example
Example 1: c# mongodb update multiple fields
var update = Update.Set("Email", "[email protected]")
.Set("Phone", "4455512");
Example 2: c# mongodb update multiple fields
var update = Update<Person>.
Set(p => p.Email, "[email protected]").
Set(p => p.Phone, "4455512");