nhibernate Basic query


Example

A basic QueryOver query is performed against an ISession using the QueryOver<T> method, where T is the type of a mapped entity.

IList<Customer> customers = session.QueryOver<Customer>()
    .Where(c => c.LastName == "Simpson")
    .List();