jeudi 3 novembre 2016

Programatically change Update Check to 'Never' on Field in DBML

I've got a table:

BlogPost
-------
ID
Text
PageViews

I required the PageViews column to have the Update Check field property set to Never.

Removing BlogPost from my .dbml file then re-adding it removes all these update check settings.

Is there any way to either:

  • Keep the update check property value when removing/adding object from dbml file
  • OR set the update check property programatically

Making changes to the underlying structure and removing/adding it back into the DBML file is begging for me to forget to set one of the update check fields on day which could cause big problems in production.





Aucun commentaire:

Enregistrer un commentaire