Table of Contents

Enum CreateStrategy

Namespace
Tharga.MongoDB.Configuration
Assembly
Tharga.MongoDB.dll
public enum CreateStrategy

Fields

CreateOnAdd = 1

Create collection if it does not exist when a record is added. Do not automatically drop empty collections.

CreateOnGet = 2

Create collection if it does not exist on get and add calls. Do not automatically drop empty collections.

DropEmpty = 0

Create collection if it does not exist when a record is added and drop when the collection is empty.