コード例 #1
0
 public static void InsertFunctionofGroup(string MaNhomNhanVien, string MaTinhNang)
 {
     using (DB_HMS_Entities Group = new DB_HMS_Entities())
     {
         tbTINHNANGNHOMND lst = new tbTINHNANGNHOMND();
         lst.MATINHNANG = MaTinhNang;
         lst.MANHOMND   = MaNhomNhanVien;
         lst.NGAYTAO    = DateTime.Today;
         Group.AddTotbTINHNANGNHOMNDs(lst);
         Group.SaveChanges();
     }
 }