public EnsureIndexAttribute(IndexConstraints ic, params string[] keys) { this.Descending = ((ic & IndexConstraints.Descending) != 0); this.Unique = ((ic & IndexConstraints.Unique) != 0);; this.Sparse = ((ic & IndexConstraints.Sparse) != 0);; this.Keys = keys; }
public EnsureIndexAttribute(IndexConstraints ic = IndexConstraints.Normal) { Descending = (ic & IndexConstraints.Descending) != 0; Unique = (ic & IndexConstraints.Unique) != 0; Sparse = (ic & IndexConstraints.Sparse) != 0; }