Class ObjectIdAttribute
Use this attribute to mark a property in order to save it in MongoDB server as ObjectId
[AttributeUsage(AttributeTargets.Property)]
public class ObjectIdAttribute : BsonRepresentationAttribute, IBsonMemberMapAttribute
- Inheritance
-
BsonSerializationOptionsAttributeBsonRepresentationAttributeObjectIdAttribute
- Implements
-
IBsonMemberMapAttribute
- Inherited Members
-
BsonRepresentationAttribute.Apply(IBsonSerializer)BsonRepresentationAttribute.RepresentationBsonRepresentationAttribute.AllowOverflowBsonRepresentationAttribute.AllowTruncationBsonSerializationOptionsAttribute.Apply(BsonMemberMap)
Constructors
ObjectIdAttribute()
Use this attribute to mark a property in order to save it in MongoDB server as ObjectId
public ObjectIdAttribute()