Mercurial > pub > ModelGenerator
view data/sample.xml @ 8:5fe2e5724331
sync
author | cin |
---|---|
date | Wed, 07 Mar 2018 15:54:22 +0300 |
parents | 1f4009d4afb6 |
children | d3542662cf70 |
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="Id" type="uuid"/> <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"> <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>