public bool DeleteHoKhau(int id) { HOKHAU obj = new HOKHAU(id); context.setState(new InsertState()); return(context.doAction(obj)); }
public bool EditHoKhau(int mahokhau, string tentinh, string tenhuyen, string makhuvuc, string tenkhuvuc) { HOKHAU obj = new HOKHAU(mahokhau, tentinh, tenhuyen, makhuvuc, tenkhuvuc); context.setState(new EditState()); return(context.doAction(obj)); }
public bool InsertHoKhau(string tenhuyen, string tentinh, string tenkhuvuc) { HOKHAU obj = new HOKHAU(tenhuyen, tentinh, tenkhuvuc); context.setState(new InsertState()); return(context.doAction(obj)); }
public frmDKHoKhau() { InitializeComponent(); imageComboBoxEdit1.Properties.Items.AddEnum(typeof(GioiTinh), true); imageComboBoxEdit1.SelectedIndex = 0; LoadDanToc(); hkhau = new HOKHAU(unitOfWork1); BindingsTab(); }