Exemplo n.º 1
1
 public void BarDao()
 {
     var session = NhSessManager.OpenSession();
     var dao = new DaoFactory(session).BarDao;
     dao.Add(new Bar { Name = "blah" });
     //dao.Find(BarSpecs.named("blah"));
     //dao.match().SingleOrDefault(b => b.Name.Equals("blah"));
     dao.All().Where(b => b.Name.Equals("blah")).SingleOrDefault();
 }