public void IgnoreNeverUpdateProperties()
{
var modifiedEntities =
Context.GetObjectContext().ObjectStateManager.GetObjectStateEntries(EntityState.Modified);
foreach (var entity in modifiedEntities)
{
entity.Entity.GetModelProperties()
.Where(x => x.GetCustomAttributes<NeverUpdateAttribute>().Any())
.ToList().ForEach(x => entity.RejectPropertyChanges(x.Name));
}
}