Last post Sep 11, 2013 04:39 AM by Illeris
Sep 08, 2013 05:47 PM|Xequence|LINK
I have a .xsd file that I intend to use to generate code files. Am I able to generate this file programatically and get differences from the previous code file?
I want to store the code file in a database and execute wsd.exe to transform the file but I need a way to know what poco entities I must update.
Example code file would be
I then receive an update and it is now
I have a schema difference report in xsd I can use but have never used this file to determine schema changes to my .xsd
Thank you in advance.
Sep 09, 2013 07:18 AM|Illeris|LINK
There is no easy way to compare XML or XSD schema's, unless your underlying schema/structure is exactly the same. In your case, you'll need to maintain more info on the classes, properties and datatypes to make the comparison.
Why do you need this difference? Perhaps the default functionality of EF can solve your problem?
Sep 09, 2013 12:34 PM|Xequence|LINK
I am hoping to use entity to update the columns accordingly. The code file may change in structure so I must keep a history of the changes to decommission a column.
Sep 11, 2013 04:39 AM|Illeris|LINK
You cannot exactly maintain this kind of intelligent info on code, as it is plain text without structure.
If you need this functionality, you'll need to: