Namespaces

Types

Type Expression

Namespace NHibernate.Expression

Methods

Public instance methods

bool Equals(object obj)

Parameters
return bool
object obj

int GetHashCode()

Parameters
return int

Type GetType()

Parameters
return Type

string ToString()

Parameters
return string

Public static methods

AbstractCriterion AllEq(IDictionary propertyNameValues)

Apply an "equals" constraint to each property in the key set of a IDictionary
Parameters
return AbstractCriterion
IDictionary propertyNameValues a dictionary from property names to values

AbstractCriterion And(ICriterion lhs, ICriterion rhs)

Return the conjuction of two expressions
Parameters
return AbstractCriterion An AndExpression .
ICriterion lhs The Expression to use as the Left Hand Side.
ICriterion rhs The Expression to use as the Right Hand Side.

AbstractCriterion Between(string propertyName, object lo, object hi)

Apply a "between" constraint to the named property
Parameters
return AbstractCriterion A BetweenExpression .
string propertyName The name of the Property in the class.
object lo The low value for the Property.
object hi The high value for the Property.

Conjunction Conjunction()

Group expressions together in a single conjunction (A and B and C...)
Parameters
return Conjunction

Disjunction Disjunction()

Group expressions together in a single disjunction (A or B or C...)
Parameters
return Disjunction

SimpleExpression Eq(string propertyName, object value)

Apply an "equal" constraint to the named property
Parameters
return SimpleExpression An EqExpression .
string propertyName The name of the Property in the class.
object value The value for the Property.

AbstractCriterion EqProperty(string propertyName, string otherPropertyName)

Apply an "equal" constraint to two properties
Parameters
return AbstractCriterion A EqPropertyExpression .
string propertyName The lhs Property Name
string otherPropertyName The rhs Property Name

SimpleExpression Ge(string propertyName, object value)

Apply a "greater than or equal" constraint to the named property
Parameters
return SimpleExpression A GtExpression .
string propertyName The name of the Property in the class.
object value The value for the Property.

AbstractCriterion GeProperty(string propertyName, string otherPropertyName)

Apply a "greater than or equal" constraint to two properties
Parameters
return AbstractCriterion A LePropertyExpression .
string propertyName The lhs Property Name
string otherPropertyName The rhs Property Name

SimpleExpression Gt(string propertyName, object value)

Apply a "greater than" constraint to the named property
Parameters
return SimpleExpression A GtExpression .
string propertyName The name of the Property in the class.
object value The value for the Property.

AbstractCriterion GtProperty(string propertyName, string otherPropertyName)

Apply a "greater than" constraint to two properties
Parameters
return AbstractCriterion A LtPropertyExpression .
string propertyName The lhs Property Name
string otherPropertyName The rhs Property Name

ICriterion IdEq(object value)

Apply an "equal" constraint to the identifier property
Parameters
return ICriterion ICriterion
object value

AbstractCriterion In(string propertyName, Object[] values)

Parameters
return AbstractCriterion
string propertyName
Object[] values

AbstractCriterion In(string propertyName, ICollection values)

Apply an "in" constraint to the named property
Parameters
return AbstractCriterion An InExpression .
string propertyName The name of the Property in the class.
ICollection values An ICollection of values.

AbstractCriterion InG<T>(string propertyName, ICollection<T> values)

Parameters
return AbstractCriterion
string propertyName
ICollection<T> values

AbstractCriterion InsensitiveLike(string propertyName, string value, MatchMode matchMode)

Parameters
return AbstractCriterion
string propertyName
string value
MatchMode matchMode

AbstractCriterion InsensitiveLike(string propertyName, object value)

A case-insensitive "like", similar to Postgres "ilike" operator
Parameters
return AbstractCriterion An InsensitiveLikeExpression .
string propertyName The name of the Property in the class.
object value The value for the Property.

AbstractEmptinessExpression IsEmpty(string propertyName)

Apply an "is not empty" constraint to the named property
Parameters
return AbstractEmptinessExpression A IsEmptyExpression .
string propertyName The name of the Property in the class.

AbstractEmptinessExpression IsNotEmpty(string propertyName)

Apply an "is not empty" constraint to the named property
Parameters
return AbstractEmptinessExpression A IsNotEmptyExpression .
string propertyName The name of the Property in the class.

AbstractCriterion IsNotNull(string propertyName)

Apply an "is not null" constraint to the named property
Parameters
return AbstractCriterion A NotNullExpression .
string propertyName The name of the Property in the class.

AbstractCriterion IsNull(string propertyName)

Apply an "is null" constraint to the named property
Parameters
return AbstractCriterion A NullExpression .
string propertyName The name of the Property in the class.

SimpleExpression Le(string propertyName, object value)

Apply a "less than or equal" constraint to the named property
Parameters
return SimpleExpression A LeExpression .
string propertyName The name of the Property in the class.
object value The value for the Property.

AbstractCriterion LeProperty(string propertyName, string otherPropertyName)

Apply a "less than or equal" constraint to two properties
Parameters
return AbstractCriterion A LePropertyExpression .
string propertyName The lhs Property Name
string otherPropertyName The rhs Property Name

SimpleExpression Like(string propertyName, object value)

Apply a "like" constraint to the named property
Parameters
return SimpleExpression A LikeExpression .
string propertyName The name of the Property in the class.
object value The value for the Property.

SimpleExpression Like(string propertyName, string value, MatchMode matchMode)

Parameters
return SimpleExpression
string propertyName
string value
MatchMode matchMode

SimpleExpression Lt(string propertyName, object value)

Apply a "less than" constraint to the named property
Parameters
return SimpleExpression A LtExpression .
string propertyName The name of the Property in the class.
object value The value for the Property.

AbstractCriterion LtProperty(string propertyName, string otherPropertyName)

Apply a "less than" constraint to two properties
Parameters
return AbstractCriterion A LtPropertyExpression .
string propertyName The lhs Property Name
string otherPropertyName The rhs Property Name

AbstractCriterion Not(ICriterion expression)

Return the negation of an expression
Parameters
return AbstractCriterion A NotExpression .
ICriterion expression The Expression to negate.

AbstractCriterion NotEqProperty(string propertyName, string otherPropertyName)

Apply an "not equal" constraint to two properties
Parameters
return AbstractCriterion A EqPropertyExpression .
string propertyName The lhs Property Name
string otherPropertyName The rhs Property Name

AbstractCriterion Or(ICriterion lhs, ICriterion rhs)

Return the disjuction of two expressions
Parameters
return AbstractCriterion An OrExpression .
ICriterion lhs The Expression to use as the Left Hand Side.
ICriterion rhs The Expression to use as the Right Hand Side.

AbstractCriterion Sql(SqlString sql, Object[] values, IType[] types)

Parameters
return AbstractCriterion
SqlString sql
Object[] values
IType[] types

AbstractCriterion Sql(string sql, object value, IType type)

Apply a constraint expressed in SQL, with the given SQL parameter
Parameters
return AbstractCriterion
string sql
object value
IType type

AbstractCriterion Sql(SqlString sql)

Apply a constraint expressed in SQL, with the given SQL parameters
Parameters
return AbstractCriterion
SqlString sql

AbstractCriterion Sql(string sql, Object[] values, IType[] types)

Parameters
return AbstractCriterion
string sql
Object[] values
IType[] types

AbstractCriterion Sql(string sql)

Apply a constraint expressed in SQL
Parameters
return AbstractCriterion
string sql

AbstractCriterion Sql(SqlString sql, object value, IType type)

Apply a constraint expressed in SQL, with the given SQL parameter
Parameters
return AbstractCriterion
SqlString sql
object value
IType type