Class IgnoreDefaultAttribute
Use this attribute to ignore a property when persisting an entity to the database if the value is null/default.
[AttributeUsage(AttributeTargets.Property)]
public class IgnoreDefaultAttribute : BsonIgnoreIfDefaultAttribute, IBsonMemberMapAttribute
- Inheritance
-
BsonIgnoreIfDefaultAttributeIgnoreDefaultAttribute
- Implements
-
IBsonMemberMapAttribute
- Inherited Members
-
BsonIgnoreIfDefaultAttribute.Apply(BsonMemberMap)BsonIgnoreIfDefaultAttribute.Value