Class ObjectIdEntity
- Namespace
- MongoDB.Entities
- Assembly
- MongoDB.Entities.dll
Inherit this class for all entities you want to store in their own collection.
public abstract class ObjectIdEntity : IEntity
- Inheritance
-
ObjectIdEntity
- Implements
- Derived
- Inherited Members
- Extension Methods
Properties
Id
This property is auto managed. A new ID will be assigned for new entities upon saving.
[BsonId]
public ObjectId Id { get; set; }
Property Value
- ObjectId