예제 #1
0
 public void Add(Person person)
 {
     using (ISession session = NHibernateHelper.OpenSession())
     using (ITransaction transaction = session.BeginTransaction())
     {
         session.Save(person);
         transaction.Commit();
     }
 }
예제 #2
0
 public void Update(Person person)
 {
     throw new NotImplementedException();
 }
예제 #3
0
 public void Remove(Person person)
 {
     throw new NotImplementedException();
 }