public void InsertUser(UserModel user) { User userData = new User() { Name = user.Name, Email = user.Email, Age = user.Age }; //_dataContext.Users.InsertAllOnSubmit(userData); _dataContext.SubmitChanges(); }
partial void DeleteUser(User instance);
partial void UpdateUser(User instance);
partial void InsertUser(User instance);