Ejemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the tbNHOMNGUOIDUNGs EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotbNHOMNGUOIDUNGs(tbNHOMNGUOIDUNG tbNHOMNGUOIDUNG)
 {
     base.AddObject("tbNHOMNGUOIDUNGs", tbNHOMNGUOIDUNG);
 }
Ejemplo n.º 2
0
 public static void InsertStaffGroup(string MaNhomNhanVien, string TenNhomNhanVien, string MoTa, bool TrangThai)
 {
     using (DB_HMS_Entities Group = new DB_HMS_Entities())
     {
         tbNHOMNGUOIDUNG lst = new tbNHOMNGUOIDUNG();
         lst.MANHOMNDN = MaNhomNhanVien;
         lst.TENNHOMND = TenNhomNhanVien;
         lst.MOTA = MoTa;
         lst.TRANGTHAI = TrangThai;
         Group.AddTotbNHOMNGUOIDUNGs(lst);
         Group.SaveChanges();
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Create a new tbNHOMNGUOIDUNG object.
 /// </summary>
 /// <param name="mANHOMNDN">Initial value of the MANHOMNDN property.</param>
 public static tbNHOMNGUOIDUNG CreatetbNHOMNGUOIDUNG(global::System.String mANHOMNDN)
 {
     tbNHOMNGUOIDUNG tbNHOMNGUOIDUNG = new tbNHOMNGUOIDUNG();
     tbNHOMNGUOIDUNG.MANHOMNDN = mANHOMNDN;
     return tbNHOMNGUOIDUNG;
 }