I want update family of a person who his name is pejman. This is my object Class:
public class Person { public int Id { get; set; } public string FirstNa
Any Object This makes Easier to update.
using (var db = new DBContext()) { AppUser au = new AppUser() { AppUserId = (int)txtID.Content, UserName = txtUserName.Text, Password = txtPwd.Password.ToString(), db.Entry(au).State= EntityState.Modified; db.SaveChanges(); }