What is the .dbml.layout file for?

What is the .dbml.layout file? It is important? Or maybe it just stores the placement of blocks in the designer and can be deleted?

I have this question because I want to edit the .dbml file manually and need to know if I have to edit .dbml.layout accordingly or just delete it so that it automatically re-creates. Fortunately, it seems to me that it is indeed auto-generated.

+5
source share
2 answers

The layout file is just to show you how your model classes are laid out in the designer. I do not believe that he has any information about the real scheme, etc. If your experimentation shows that it is being regenerated for you, and you do not mind losing any custom layouts that you created to simplify this diagram, it should be a fine to remove it.

+6
source

not really. the constructor file stores the code generated by the designer that you use to access the database, literally these are linq to SQL classes. The constructor of a dbml file is just an XML document that you can really open and edit manually. This is not recommended for a beginner.

+1
source

All Articles