public void Apply(BsonMemberMap memberMap) { var defaultValue = _target.GetDefaultValue(memberMap.MemberInfo); if (defaultValue != null) { memberMap.ApplyDefaultValue(defaultValue); } }
public void Apply(BsonMemberMap memberMap) { if (memberMap.MemberType != typeof(Guid) && memberMap.MemberType != typeof(Guid?)) { return; } memberMap.SetSerializer(new GuidSerializer(BsonType.String)); memberMap.ApplyDefaultValue(string.Empty); CallistoLogger.ConventionsLogger.Guid(memberMap.ClassMap.ClassType.Name, memberMap.MemberName); }
public void Apply(BsonMemberMap memberMap) { var defaultValue = _target.GetDefaultValue(memberMap.MemberInfo); if (defaultValue != null) { memberMap.ApplyDefaultValue(defaultValue); } }