Monday, April 25, 2011

DBML changes & source control

Hi all!

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

From stackoverflow
  • 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.

    Gustavo : We have all scenarios. I agree with what you said, but what if different people changed the same tables, requiring a merge, but at the same time having a lot of conflicts caused by the connectors rearrangement?
    Robert MacLean : In the scenario you describe: If people do not change the tables, just moved them around the .dbml won't be effected and you could ignore that. If the .dbml changes then you would need to do a merge.
    Gustavo : If I try a merge I will solve the new fields/tables problem but I will get duplicate associationConnector such as this one: Robert MacLean : Yeah, let me rephrase. If the .layout changes always just accept (if the .dbml also changed) or reject it (if the .dbml didn't also change) - never merge. If the .dbml changes worry about merging that.

0 comments:

Post a Comment