Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a .dbml.layout file for?

What is a .dbml.layout file for? Is it important? Or, maybe, it just stores the placing of blocks in the designer and can be deleted?

I've got this question because I want to edit the .dbml file manually and need to know if I must edit .dbml.layout accordingly or can just delete it to get it recreated automatically. Luckily it seems for me that it is indeed autogenerated.

like image 814
Ivan Avatar asked Jun 02 '11 04:06

Ivan


2 Answers

The layout file is just to show you how your model classes are laid out in the designer. I don't believe it has any information about the actual schema etc. If your experimentation shows that it's being regenerated for you and you don't mind losing any custom layouts you've created to make the diagram simpler to understand, it should be fine to delete it.

like image 102
Jon Skeet Avatar answered Nov 15 '22 12:11

Jon Skeet


not quite. the designer file stores the code generated by the designer that you use to access the database it literally is the linq to SQL classes the designer the dbml file is just an XML document that you can actually open and edit manually tho this not recommended for a beginner

like image 33
Chris McGrath Avatar answered Nov 15 '22 11:11

Chris McGrath