C# Class NHibernate.Linq.SqlMethods

Mostrar archivo Open project: nhibernate/nhibernate-core

Public Methods

Method Description
Like ( this matchExpression, string sqlLikePattern ) : bool

Use this method in a Linq2NHibernate expression to generate an SQL LIKE expression. (If you want to avoid depending on the NHibernate.Linq namespace, you can define your own replica of this method. Any 2-argument method named Like in a class named SqlMethods will be translated.) This method can only be used in Linq2NHibernate expressions, and will throw if called directly.

Like ( this matchExpression, string sqlLikePattern, char escapeCharacter ) : bool

Use this method in a Linq2NHibernate expression to generate an SQL LIKE expression with an escape character defined. (If you want to avoid depending on the NHibernate.Linq namespace, you can define your own replica of this method. Any 3-argument method named Like in a class named SqlMethods will be translated.) This method can only be used in Linq2NHibernate expressions, and will throw if called directly.

Method Details

Like() public static method

Use this method in a Linq2NHibernate expression to generate an SQL LIKE expression. (If you want to avoid depending on the NHibernate.Linq namespace, you can define your own replica of this method. Any 2-argument method named Like in a class named SqlMethods will be translated.) This method can only be used in Linq2NHibernate expressions, and will throw if called directly.
public static Like ( this matchExpression, string sqlLikePattern ) : bool
matchExpression this
sqlLikePattern string
return bool

Like() public static method

Use this method in a Linq2NHibernate expression to generate an SQL LIKE expression with an escape character defined. (If you want to avoid depending on the NHibernate.Linq namespace, you can define your own replica of this method. Any 3-argument method named Like in a class named SqlMethods will be translated.) This method can only be used in Linq2NHibernate expressions, and will throw if called directly.
public static Like ( this matchExpression, string sqlLikePattern, char escapeCharacter ) : bool
matchExpression this
sqlLikePattern string
escapeCharacter char
return bool