Listato1()

private static void Listato1()
{
  using (ISession session = NHSessionManager.GetSession())
  {
    Customer gianMaria = new Customer("Gian Maria", "Ricci");
    Order order1 = new Order(DateTime.Now, 10.00f);
    Order order2 = new Order(DateTime.Now, 20.00f);
    gianMaria.Orders.Add(order1);
    gianMaria.Orders.Add(order2);
    session.Save(gianMaria);
    session.Flush();
  }
}