session.CreateCriteria<Person>()
.SetFetchMode(p => p.PersonDetail, FetchMode.Eager)
.SetLockMode(LockMode.Upgrade)
.Add(p=>p.Name.Like("foo"))
.List();
That would remove a lot of the pressure to build a full fledged linq provider.
And it seems like it is much easier to do.
Thoughts?
Also, I don't think it need to replace the existing criterias - it could
live along side them.
Richard
--------------------------------------------------
From: "Ingo" <ingemar.s...@gmail.com>
Sent: Friday, February 27, 2009 7:02 PM
To: "nhibernate-development" <nhibernate-...@googlegroups.com>
Subject: [nhibernate-development] Re: Type safe criteria
>