/// <summary> /// Create a new tbDONTHUOCMAU object. /// </summary> /// <param name="mADONTHUOCMAU">Initial value of the MADONTHUOCMAU property.</param> /// <param name="mABACSY">Initial value of the MABACSY property.</param> public static tbDONTHUOCMAU CreatetbDONTHUOCMAU(global::System.String mADONTHUOCMAU, global::System.String mABACSY) { tbDONTHUOCMAU tbDONTHUOCMAU = new tbDONTHUOCMAU(); tbDONTHUOCMAU.MADONTHUOCMAU = mADONTHUOCMAU; tbDONTHUOCMAU.MABACSY = mABACSY; return tbDONTHUOCMAU; }
/// <summary> /// Deprecated Method for adding a new object to the tbDONTHUOCMAUs EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTotbDONTHUOCMAUs(tbDONTHUOCMAU tbDONTHUOCMAU) { base.AddObject("tbDONTHUOCMAUs", tbDONTHUOCMAU); }
public static void InsertDonthuocmau(string MADONTHUOCMAU, string MABACSI, DateTime NGAYTAO, Boolean TRANGTHAI) { using (DB_HMS_Entities ds = new DB_HMS_Entities()) { tbDONTHUOCMAU pk = new tbDONTHUOCMAU(); pk.MADONTHUOCMAU = MADONTHUOCMAU; pk.MABACSY = MABACSI; pk.NGAYTAO = NGAYTAO; pk.TRANGTHAI = TRANGTHAI; ds.AddTotbDONTHUOCMAUs(pk); ds.SaveChanges(); } }