Table of Contents

Class ObjectIdAttribute

Namespace
MongoDB.Entities
Assembly
MongoDB.Entities.dll

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
BsonSerializationOptionsAttribute
BsonRepresentationAttribute
ObjectIdAttribute
Implements
IBsonMemberMapAttribute
Inherited Members
BsonRepresentationAttribute.Apply(IBsonSerializer)
BsonRepresentationAttribute.Representation
BsonRepresentationAttribute.AllowOverflow
BsonRepresentationAttribute.AllowTruncation
BsonSerializationOptionsAttribute.Apply(BsonMemberMap)

Constructors

ObjectIdAttribute()

Use this attribute to mark a property in order to save it in MongoDB server as ObjectId

public ObjectIdAttribute()