title: How get data from table with NHibernate by where?
body: <p>I used in my project NHibernate like this:</p>
  
  <pre><code>public class DBHelper
      {
          private static ISessionFactory sessions;
  
          public static void Configure()
          {            
              sessions = new Configuration().Configure().AddClass(typeof(Clients)).BuildSessionFactory();
              //ISessionFactory factory = Fluently.Configure().Mappings(m =&gt; m.FluentMappings.AddFromAssemblyOf&lt;Clients&gt;()).Database(MsSqlConfiguration.MsSql2005.ConnectionString(c =&gt; c.FromConnectionStringWithKey(DBConnection.GetConnectionString())).BuildSessionFactory();
          }
  
          public static void Insert(Clients pb)
          {            
              using (ISession session = sessions.OpenSession())           
              using (ITransaction tx = session.BeginTransaction())
              {                
                  session.Save(pb);                
                  tx.Commit();
              }
          }
  
          public static void UpdateContact(Clients pb)
          {
              using (ISession session = sessions.OpenSession())
              using (ITransaction tx = session.BeginTransaction())
              {
                  session.Update(pb);
                  tx.Commit();
              }
          }
  
          public static void DeleteContact(Clients pb)
          {
              using (ISession session = sessions.OpenSession())
              using (ITransaction tx = session.BeginTransaction())
              {
                  session.Delete(pb);
                  tx.Commit();
              }
          }
      }
  </code></pre>
  
  <p>I have tree simple methods: insert, delete, save.
  Now I need to get all data from DB table or some data like analog
       select * from Clients where id='...'</p>