views:

20

answers:

1

I've got a DBML file in my project with all my LinqToSql objects. Initially I imported them from the DB, and all was well. Now as my DB has been growing, I've been adding the new tables to the diagram in the O/R Designer, but they always get appended to the end of the XML. This is a bit of a pain, because when I'm defining foreign keys, it always lists the available tables in the order in which they appear in the XML.

Any ideas how to sort the XML table declarations alphabetically according to the table name?

A: 

A possible solution is to write a small application that reads in the XML, sorts it to your liking and outputs the updated version.

Pieter
OK, that's the industrious solution, and it is technically correct, but I was hoping for a lazy way out... :)
Shaul
Probably not. My first option was to manually author the file, but I thought you wouldn't going to like that :).
Pieter