public void Apply(BsonMemberMap memberMap) { if (memberMap == null) { return; } if (memberMap.MemberType == typeof(string) && _memberMatchRegex.IsMatch(memberMap.ElementName)) { memberMap.SetRepresentation(BsonType.ObjectId); } }
public void Apply(BsonMemberMap memberMap) { if (memberMap == null) { return; } if (memberMap.MemberType == typeof(string) && _memberMatchRegex.IsMatch(memberMap.ElementName)) { memberMap.SetRepresentation(BsonType.ObjectId); } }