Page 1 of 1

Disable timestamps in generated model.cs files

Posted: Fri 10 Apr 2015 23:11
by michaelm_westat
I'm using DbContext to have one .cs file per table. At present, whenever I reload the model from the database, it updates a timestamp at the top of each of these .cs files. This increases the noise in our version control system.

Is there a way to stop this from being written?
// This code was generated by Devart Entity Developer tool using Entity Framework DbContext template.
// Code is generated on: 4/7/2015 2:50:17 PM

Re: Disable timestamps in generated model.cs files

Posted: Mon 13 Apr 2015 12:47
by Shalex
Please open your *.edml model, navigate to Tools > Entity Developer > Model Explorer, select the DbContext template and press F4 (Properties). Set any value in the Header Timestamp Version Control Tag property. If this option is set, the standard date/time-stamp in the file header will be replaced with the specified tag (e.g. a version control tag for Subversion, Git, etc.).