mongodb update multiple fields 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");
Example 3: mongodb match multiple fields
$match:
{
$and: [
{'ExtraFields.value': {$in: ["A52A2A"]}},
{'ExtraFields.fieldID': ObjectId("5535627631efa0843554b0ea")}
]
}