Using 10gen mondgo db c# driver.I have following class
[BsonId]
public ObjectId Id { get; set; }
public int AttemptId { get; set; }
public int UserId { get; set; }
public int QId { get; set; }
public string UserInput { get; set; }
public string Feedback{ get; set; }
By default if i dont sent values of UserInput or Feedback (any string ) mongodb put them as null . Is there any way to override this with string.empty while inserting or while fetching the data.
Tried setting [BsonDefaultValue("")] but this also didnt work.