I would like to use this generic CompareObjects class but it seems that the Subsonic record objects don't implement IComparable.
User userFromDB = User.SingleOrDefault(x => x.UserName == "CmdrTallen");
User modifiedUser = new User();
TryUpdateModel(modifiedUser);
if(CompareOjbects<User>(userFromDB, modifiedUser) != 0)
{
this.log("User was modified")
//+ Add modified columns collection to log here
}
Am I re-inventing the wheel? Perhaps a easier way?