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(); }
public void Add(U_User c) { db.U_User.InsertOnSubmit(c); db.SubmitChanges(); }
partial void UpdateU_User(U_User instance);
partial void DeleteU_User(U_User instance);
partial void InsertU_User(U_User instance);