nhibernate

LINQ to NHibernate Queries

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");

This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow