LINQ to NHibernate Queries

Other topics

Remarks:

The LINQ to NHibernate driver is centered on the IQueryable<T> interface.

Be sure to add using NHibernate.Linq; in order to use the NHibernate LINQ provider.

Basic query

IQueryable<Cat> cats = session.Query<Cat>()
    .Where(c => c.Name == "Max");

Contributors

Topic Id: 3544

Example Ids: 12218

This site is not affiliated with any of the contributors.