Example #1
0
        public void Update(U_User c)
        {
            var result = db.U_User.Where(x => x.userid == c.userid);

            foreach (var item in result)
            {
                item.name  = c.name;
                item.phone = c.phone;
            }

            db.SubmitChanges();
        }
Example #2
0
 public void Add(U_User c)
 {
     db.U_User.InsertOnSubmit(c);
     db.SubmitChanges();
 }
Example #3
0
 partial void UpdateU_User(U_User instance);
Example #4
0
 partial void DeleteU_User(U_User instance);
Example #5
0
 partial void InsertU_User(U_User instance);