I'm trying to update my model in the POST of my controller:
I'm getting the original values from the database here:
var origAttributes = (from tAttr in db.TeacherAttrs where tAttr.ID == ta.ID select tAttr);
I have a property in the my ViewModel that is a type of db.TeacherAttr
property name:
ta.DMTeacherAttr
I'm wondering is there a way to compare the values between what my model (ta.DMTeacherAttr) has and what is in the database already?
I am using Entity Framework 5 as well.