Table of Contents

Class SearchQuery

Namespace: Casewhere.Common.DataQuery
Assembly: Casewhere.Common.dll

public class SearchQuery

Inheritance

objectSearchQuery

Inherited Members

object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()

Extension Methods

ObjectExtension.ConvertToBsonValue(object), EnumExtensions.DeepClone<SearchQuery>(SearchQuery)

Constructors

SearchQuery()

public SearchQuery()

Fields

ALL

public const int ALL = 0

Field Value

int

NONE

public const int NONE = 0

Field Value

int

Properties

Filter

dynamic filter for simple query i.e. will be translated to BsonDocument var filter = new { ProductId = Guid.Parse('xxxx-xxx...'), Level = new { $gt = 10} }

public object Filter { get; set; }

Property Value

object

HasFilter

public bool HasFilter { get; }

Property Value

bool

HasSearch

public bool HasSearch { get; }

Property Value

bool

HasSort

public bool HasSort { get; }

Property Value

bool

IncludeTotal

public bool IncludeTotal { get; set; }

Property Value

bool

OrderBy

public IList<SortField> OrderBy { get; set; }

Property Value

IList<SortField>

Projection

public IList<string> Projection { get; set; }

Property Value

IList<string>

Make sure you have $text index in the queried collection

public string Search { get; set; }

Property Value

string

Skip

public int Skip { get; set; }

Property Value

int

Take

public int Take { get; set; }

Property Value

int