Disable timestamps in generated model.cs files

Disable timestamps in generated model.cs files

Postby michaelm_westat » Fri 10 Apr 2015 23:11

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
michaelm_westat
 
Posts: 1
Joined: Fri 10 Apr 2015 23:07

Re: Disable timestamps in generated model.cs files

Postby Shalex » Mon 13 Apr 2015 12:47

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.).
Shalex
Devart Team
 
Posts: 7774
Joined: Thu 14 Aug 2008 12:44


Return to dotConnect for PostgreSQL