public void Remove(User user) { using (var session = SessionFactory.OpenSession()) { session.Delete(user); session.Flush(); } }
public void Update(User user) { using (var session = SessionFactory.OpenSession()) { session.Update(user); session.Flush(); } }
public void AddUser(User user) { using (var session = SessionFactory.OpenSession()) { session.Save(user); session.Flush(); } }