The change tracking to use for this entity. If not specified, the change tracking type specified in the Configuration is used.
The constructor for the class.
The database collection name. If not specified, the naming strategy specified in the Configuration is used to determine the collection name.
Options to pass to the database when creating the collection.
The name of the database. If not specified, the default database for the connection is used.
The database document field to use to represent the type of the class. If not specified, the field name from the Configuration is used. Only valid on the root mapping of an inheritance hierarchy.
Readonly property gets the value used to represent the class type in the database document.
Readonly flags that describe the mapping. This value is assigned internally and should not be modified.
The order in which collections are flushed to the database. Higher priority collections are flushed first.
Readonly property indicates if this class mapping has a base class.
Readonly property indicates if this class mapping has derived classes.
The IdentityGenerator to use for this collection. If not specified, the IdentityGenerator specified in the Configuration is used.
A list of indexes to optionally create for the collection on startup.
The name of the class.
The name of the database document field to use to store the version of the entity. If not specified the value from the Configuration is used.
Indicates if this entity should use optimistic locking. Default is true.
Adds a specification for an index that should be created on the collection. The index is only created if creation of indexes is enabled.
The index specification.
Returns true if the mapping has the specified flags; otherwise, returns false.
Sets the value used to represent the class type in the database document. If not specified, the naming strategy in the Configuration is used to determine the discriminator value based on the class name.
The value to use for the discriminator for this class.
Validates a property before adding it to the mapping. Returns any validation error messages or undefined if none.
The property to validate.
The error message.
Generated using TypeDoc
Represents the mapping from a document collection to a named class type.