Criteria class
namespace: Serenity.Data assembly: Serenity.Net.Services
An object that is used to create criteria by employing the operator overloading features of the C# language, instead of using string based criteria.
public class Criteria : BaseCriteria
Public Members
| name | description |
|---|---|
| Criteria(…) | Creates a new criteria with the given condition. This condition is usually a field name, but it can also be a pre-generated criteria text. (10 constructors) |
| static Bracket(…) | Creates a new criteria containing the field name in brackets. |
| Expression { get; } | Gets the criteria expression. |
| override IsEmpty { get; } | Gets whether the criteria is empty. |
| override ToString(…) | Converts the criteria to its string representation while adding its parameters to the target query. |
| static Field { get; } | Gets a reference to the IField object passed to the constructor. |
| static readonly Empty | An empty criteria instance. |
| static readonly False | The false criteria instance (0 = 1). |
| static readonly True | The true criteria instance (1 = 1). |
| static Exists(…) | Creates a new EXISTS criteria. (2 methods) |
See Also
- class BaseCriteria
- Source: Criteria.cs