using System; namespace MongoDbGenericRepository.Models { /// /// Options for creating an index. /// public class IndexCreationOptions { /// /// Gets or sets a value indicating whether the index is a unique index. /// public bool? Unique { get; set; } /// /// Gets or sets the index version for text indexes. /// public int? TextIndexVersion { get; set; } /// /// Gets or sets the index version for 2dsphere indexes. /// public int? SphereIndexVersion { get; set; } /// /// Gets or sets a value indicating whether the index is a sparse index. /// public bool? Sparse { get; set; } /// /// Gets or sets the index name. /// public string Name { get; set; } /// /// Gets or sets the min value for 2d indexes. /// public double? Min { get; set; } /// /// Gets or sets the max value for 2d indexes. /// public double? Max { get; set; } /// /// Gets or sets the language override. /// public string LanguageOverride { get; set; } /// /// Gets or sets when documents expire (used with TTL indexes). /// public TimeSpan? ExpireAfter { get; set; } /// /// Gets or sets the default language. /// public string DefaultLanguage { get; set; } /// /// Gets or sets the precision, in bits, used with geohash indexes. /// public int? Bits { get; set; } /// /// Gets or sets a value indicating whether to create the index in the background. /// public bool? Background { get; set; } /// /// Gets or sets the version of the index. /// public int? Version { get; set; } } }