Disable timestamps in generated model.cs files

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
michaelm_westat
Posts: 1
Joined: Fri 10 Apr 2015 23:07

Disable timestamps in generated model.cs files

Post by 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

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Disable timestamps in generated model.cs files

Post by 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.).

Post Reply