Пример #1
0
 public void doimk(Entity_NguoiDung et)
 {
     cn.ThucthiSQL(@"update tblNguoiDung set MatKhau=N'" + et.MatKhau + "' where TaiKhoan=N'" + et.TaiKhoan + "' and MaXacNhan=N'" + et.MaXacNhan + "'");
 }
Пример #2
0
 public void suadulieu(Entity_NguoiDung et)
 {
     cn.ThucthiSQL(@"UPDATE    tblNguoiDung SET TenNguoiDung=N'" + et.TenNguoiDung + "',LoaiNguoiDung=N'" + et.LoaiNguoiDung + "',MatKhau =N'" + et.MatKhau + "' where TaiKhoan=N'" + et.TaiKhoan + "' and MaXacNhan=N'" + et.MaXacNhan + "'");
 }
Пример #3
0
 public void xoadulieu(Entity_NguoiDung et)
 {
     cn.ThucthiSQL(@"DELETE from tblNguoiDung where TaiKhoan=N'" + et.TaiKhoan + "'");
 }
Пример #4
0
 public void themdulieu(Entity_NguoiDung et)
 {
     cn.ThucthiSQL(@"INSERT INTO tblNguoiDung (TaiKhoan,TenNguoiDung, MatKhau, LoaiNguoiDung, MaXacNhan) VALUES     (N'" + et.TaiKhoan + "',N'" + et.TenNguoiDung + "',N'" + et.MatKhau + "',N'" + et.LoaiNguoiDung + "',N'" + et.MaXacNhan + "')");
 }