;)A talk with the autor and I had review the prj before give him the ability to blog in NH-forge. After NH2.1 we can add it in core (that mean soon).
2009/1/8 Ayende Rahien <[email protected]> > This is really interesting: > > > http://nhforge.org/blogs/nhibernate/archive/2009/01/07/typesafe-icriteria-using-lambda-expressions.aspx > > Expanding the syntax a bit, we can use: > > 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? > -- Fabio Maulo
