SetDefaultValue() public method

Sets the default value creator.
public SetDefaultValue ( Func defaultValueCreator ) : BsonMemberMap
defaultValueCreator Func The default value creator (note: the supplied delegate must be thread safe).
return BsonMemberMap
Ejemplo n.º 1
0
 public void Apply(BsonMemberMap memberMap)
 {
     if (memberMap.MemberType == typeof(Guid))
     {
         memberMap.SetDefaultValue(Guid.Empty);
     }
 }