public void SaveUserTest()
 {
     User user = new User();
     user.UserID = "buyer000";
     user.Password = "******";
     user.UserName = "******";
     user.ValidFrom = Convert.ToDateTime("2008-8-18");
     user.ValidTo = Convert.ToDateTime("2012-8-18");
     user.CreateTime = DateTime.Now;
     UserDao.Save(user);
 }
Example #2
0
 public User SaveOrUpdate(User user)
 {
     HibernateTemplate.SaveOrUpdate(user);
     return user;
 }
Example #3
0
 public void Delete(User user)
 {
     HibernateTemplate.Delete(user);
 }