I have the following poco (other properties omitted for simplicity) :
public class Address
{
. . .
public string CountryCode { get; set; }
. . .
}
What do I have to do in the BsonClassMap to enforce Upper Case only for this property.
For Example "us" will be stored in the db as "US"
BsonClassMap.RegisterClassMap<Address>(cm =>
{
// what am I missing here ?
});
Or am I approaching this the wrong way ?