title: What is the best way to prevent updating on specific fields in Entity Framework
body: <p>Im writing an web application with MVC using Entity Framework for my backend logic. My problem is that I have an entity that has certain fields that should never be changed on an update. I am not really sure what the best way to solve this problem would be. There is going to be a lot of data processed in my application, so I cant afford to just hack up a solution.</p>
  
  <p>Is it possible to just define the fields as readonly in the POCO entities ? Or should I write and entity framework extension class that validates all updates. Could it be done in the mapping files between EF and the actual database?</p>
  
  <p>I am relatively new with EF, so I hope some of you might be able to give me some pointers!</p>
  
  <p>Thanks!</p>