public WriteConcern GetWriteConcern()
 {
     if (string.IsNullOrEmpty(WriteConcern))
     {
         return(MongoDB.Driver.WriteConcern.Acknowledged);
     }
     return(WriteConcern.ToLowerInvariant() switch
     {
         "acknowledged" => MongoDB.Driver.WriteConcern.Acknowledged,
         "unacknowledged" => MongoDB.Driver.WriteConcern.Unacknowledged,
         "w1" => MongoDB.Driver.WriteConcern.W1,
         "w2" => MongoDB.Driver.WriteConcern.W2,
         "w3" => MongoDB.Driver.WriteConcern.W3,
         "wmajority" => MongoDB.Driver.WriteConcern.WMajority,
         _ => MongoDB.Driver.WriteConcern.Acknowledged
     });