Exemplo n.º 1
0
        public void Update(H_Admin admin)
        {
            var result = from a in nc.H_Admin
                         where a.Id == admin.Id
                         select a;

            foreach (var item in result)
            {
                item.Username   = admin.Username;
                item.Password   = admin.Password;
                item.CreateDate = admin.CreateDate;
                item.email      = admin.email;
                item.privelege  = admin.privelege;
            }

            nc.SubmitChanges();
        }
Exemplo n.º 2
0
 public void Add(H_Admin admin)
 {
     nc.H_Admin.InsertOnSubmit(admin);
     nc.SubmitChanges();
 }
Exemplo n.º 3
0
 partial void UpdateH_Admin(H_Admin instance);
Exemplo n.º 4
0
 partial void DeleteH_Admin(H_Admin instance);
Exemplo n.º 5
0
 partial void InsertH_Admin(H_Admin instance);