File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,12 @@ public static class SqlMethods
6
6
{
7
7
/// <summary>
8
8
/// Use the SqlMethods.Like() method in a Linq2NHibernate expression to generate
9
- /// an SQL LIKE expression. (Any 2-argument method named Like in a class named SqlMethods
10
- /// will be translated.)
9
+ /// an SQL LIKE expression. (If you want to avoid depending on the NHibernate.Linq namespace,
10
+ /// you can define your own replica of this method. Any 2-argument method named Like in a class named SqlMethods
11
+ /// will be translated.) This method can only be used in Linq2NHibernate expression, and will throw
12
+ /// if called directly.
11
13
/// </summary>
12
- public static bool Like ( string matchExpression , string pattern )
14
+ public static bool Like ( this string matchExpression , string sqlLikePattern )
13
15
{
14
16
throw new NotSupportedException (
15
17
"The NHibernate.Linq.SqlMethods.Like(string, string) method can only be used in Linq2NHibernate expressions." ) ;
You can’t perform that action at this time.
0 commit comments