Stop updating comments in every file

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
mbp55
Posts: 3
Joined: Tue 03 Nov 2020 15:24

Stop updating comments in every file

Post by mbp55 » Tue 03 Nov 2020 15:37

My model makes one file per class and has upwards of 400 tables. A lot of times, I may need to only update a single column. When saving the model, it checks out every single file and only changes one line in the comments at the top of each file even though there was no change in the actual class. The line in bold below is the only things that is changed.

//------------------------------------------------------------------------------
// This is auto-generated code.
//------------------------------------------------------------------------------
// This code was generated by Devart Entity Developer tool using Entity Framework DbContext template.
// Code is generated on: 11/3/2020 7:50:05 AM
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//------------------------------------------------------------------------------

My team uses source control and because only the comments are changing, visual studio checks out every single file (400 files) just to change that one comment line.
Is there any way to stop all files from being updated when only updating one needing to update one file in the model?

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

Re: Stop updating comments in every file

Post by Shalex » Tue 03 Nov 2020 20:30

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

mbp55
Posts: 3
Joined: Tue 03 Nov 2020 15:24

Re: Stop updating comments in every file

Post by mbp55 » Tue 03 Nov 2020 21:07

That worked. Thank you

Post Reply