Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DBML changes & source control

I'm having some issues with the DBML. Every time the team needs to synchronize changes into SVN, the DBML is changed which generates lots of conflicts. This seems to be related to some rearrangement in the dbml editor, because most of the associationConnector sections in the .dmbl.layout seem to change during development if you open the dbml file in the editor.

Do you have any best practices to avoid these layout rearrangements that can easily take more than one hour to fix?

Best regards, Gustavo

like image 943
Gustavo Avatar asked Mar 10 '09 14:03

Gustavo


People also ask

What is the difference between Dbml and EDMX?

edmx is the modeling file for Entity Framework. dbml is the modeling file for Linq 2 Sql. You should spend your time learning Entity Framework as Linq 2 Sql is deprecated.

What is a Dbml?

DBML (Database Markup Language) is an open-source DSL language designed to define and document database schemas and structures. It is designed to be simple, consistent and highly-readable. It also comes with command-line tool and open-source module to help you convert between DBML and SQL.

How do I add a column to a Dbml file?

Right Click the table in the dbml file designer(*. dbml file) -> Then Choose Add Property -> give some name to the property. This is the new column which you have added to the table in the database.


1 Answers

If it is just the .layout being changed then I would actually ignore the request since the GUID's which link everything up will still match. They just won't be in the same place as I set them, something I could live with. If the .dbml changed as well, then I would accept both without merging.

like image 123
Robert MacLean Avatar answered Oct 28 '22 11:10

Robert MacLean