InsensitiveLike and MatchMode

7 views
Skip to first unread message

Ingo

unread,
Feb 27, 2009, 10:58:30 AM2/27/09
to NhLambdaExtensionsUsers
Hi,

I just have to say that I love what you have done! Great work!

I have a question. I have an existing criteria looking like this which
I want to translate to NhLambdaExpressions but I don't know how. Is it
possible with the current version?

ICriteria criteria = Session.CreateCriteria(typeof(UserInRole))
.Add
(Expression.Eq("ApplicationName", applicationName))
.Add
(Expression.InsensitiveLike("UserName", userName, MatchMode.Exact))
.Add
(Expression.Eq("RoleName", roleName));


Best regards
Ingo

C+++

unread,
Feb 27, 2009, 4:47:53 PM2/27/09
to nhlambdaext...@googlegroups.com
Looks like it isn't implemented yet, by looking at the code.

shouldn't be that hard to add this.

Richard (Google)

unread,
Feb 28, 2009, 5:11:31 AM2/28/09
to nhlambdaext...@googlegroups.com
Thanks for spotting the missing methods, that's them added now.
 
V1.0.3.0 released.
 
Cheers,
    Richard

Ingo

unread,
Feb 28, 2009, 8:55:54 AM2/28/09
to NhLambdaExtensionsUsers
Thanks, Richard!

I also noticed that there is no MatchMode valls for the
SqlExpression.Like() and SqlExpression.Like<>() methods. If you have
the time to fix those as well it would be great. Otherwise, can I do
it?

Cheers!

On 28 Feb, 11:11, "Richard \(Google\)" <fluke...@googlemail.com>
wrote:
> Thanks for spotting the missing methods, that's them added now.
>
> V1.0.3.0 released.
>
> Cheers,
>     Richard
>   From: C+++
>   Sent: Friday, February 27, 2009 9:47 PM
>   To: nhlambdaext...@googlegroups.com
>   Subject: Re: InsensitiveLike and MatchMode
>
>   Looks like it isn't implemented yet, by looking at the code.
>
>   shouldn't be that hard to add this.
>

Richard (Google)

unread,
Mar 1, 2009, 5:30:15 PM3/1/09
to NhLambdaExtensionsUsers
No problem - I'll have a look tomorrow if I get the chance.

Cheers,
Richard

--------------------------------------------------
From: "Ingo" <ingemar.s...@gmail.com>
Sent: Saturday, February 28, 2009 1:55 PM
To: "NhLambdaExtensionsUsers" <nhlambdaext...@googlegroups.com>

Richard Brown (gmail)

unread,
Mar 2, 2009, 5:24:48 PM3/2/09
to NhLambdaExtensionsUsers
Added it; that's V1.0.4.0 released.

--------------------------------------------------
From: "Richard (Google)" <fluk...@googlemail.com>
Sent: Sunday, March 01, 2009 10:30 PM
Reply all
Reply to author
Forward
0 new messages