Enum CreateStrategy
- Namespace
- Tharga.MongoDB.Configuration
- Assembly
- Tharga.MongoDB.dll
public enum CreateStrategy
Fields
CreateOnAdd = 1Create collection if it does not exist when a record is added. Do not automatically drop empty collections.
CreateOnGet = 2Create collection if it does not exist on get and add calls. Do not automatically drop empty collections.
DropEmpty = 0Create collection if it does not exist when a record is added and drop when the collection is empty.