Mercurial > pub > ModelGenerator
diff data/sample.xml @ 6:1f4009d4afb6
working on model to csharp transform
author | cin |
---|---|
date | Mon, 05 Mar 2018 10:37:47 +0300 |
parents | 6f67d3a6b950 |
children | d3542662cf70 |
line wrap: on
line diff
--- a/data/sample.xml Fri Mar 02 18:34:19 2018 +0300 +++ b/data/sample.xml Mon Mar 05 10:37:47 2018 +0300 @@ -8,12 +8,31 @@ <entity name="Gallery"> <primaryKey name="Id" type="uuid"/> - + <hasMany name="ItemLinks" type="GallertItemLink"> + <otherKey name="Item"/> + <clr:association/> + </hasMany> </entity> <entity name="GalleryItemLink"> - <primaryKey> + <primaryKey name="Id"> + <member name="Item"/> + <member name="Gallery"/> </primaryKey> - <hasA /> + <hasA name="Item" type="Item"> + <thisKey name="ItemId" /> + <clr:association /> + <clr:lazy /> + </hasA> + <hasA name="Gallery" type="Gallery"> + <thisKey name="GalleryId" /> + <clr:association /> + <clr:lazy/> + </hasA> + </entity> + + <entity name="Item"> + <primaryKey name="Id" type="uuid"/> + <property name="href" type="text"/> </entity> </package> \ No newline at end of file