Mercurial > pub > ModelGenerator
view 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 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>