Mercurial > pub > ModelGenerator
view data/sample.xml @ 10:19a8a71eaa54
added test-model.xsl template for testing purpose of model.xsl
working on members expansion templates
author | cin |
---|---|
date | Mon, 12 Mar 2018 02:58:34 +0300 |
parents | d3542662cf70 |
children |
line wrap: on
line source
<?xml version="1.0"?> <package xmlns="http://implab.org/schemas/data-model.v1.xsd" xmlns:f="http://implab.org/schemas/data-model/geo.v1.xsd" xmlns:clr="http://implab.org/schemas/data-model/dotnet.v1.xsd" xmlns:sql="http://implab.org/schemas/data-model/sql.v1.xsd" xmlns:esri="http://geopallada.ru/schemas/data-model/esri.v1.xsd" name="users" version="1.0" clr:namespace="Sample.Model"> <import href="types.xml"/> <entity name="Gallery"> <primaryKey name="GalleryPk"> <member name="Id" type="Gallery"/> </primaryKey> <property name="Id" type="uuid" special="true"> <hiddenBy name="GalleryPk" type="Gallery"/> <clr:autoGenrated/> </property> <hasMany name="ItemLinks" type="GallertItemLink"> <otherKey name="Item"/> <clr:association/> </hasMany> </entity> <entity name="GalleryItemLink"> <primaryKey name="Id"> <member name="Item"/> <member name="Gallery"/> </primaryKey> <hasA name="Item" type="Item"> <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"> <clr:autoGenerated/> </primaryKey> <property name="href" type="text"/> </entity> </package>