Saving the dbml file creates a new designer.cs file

Every time I save my dbml file after updating or adding new database objects, a new designer.cs file is created and the old designer stays the same. I believe the dbml is corrupted, but I'm not sure about the resolution. Google doesn't seem to be very helpful either. Any help is appreciated.

+3


source to share


1 answer


It sounds completely normal at first that a new code file is generated every time you change something on the model.

But since you say "the old designer remains unchanged", I assume that the new designer.cs file has some extension in the filename to distinguish it from the old one. You cannot have two files with the same name in the same directory. Have you checked that the old designer file is not read-only? Perhaps due to some file version control system you were using.



In an ideal world, I think you will get an error in situations like this, but with computers that you never know.

0


source







All Articles