view data/sample.xml @ 13:197a850b1f6f default tip

working version of xml2json transformation
author cin
date Mon, 09 Apr 2018 16:27:26 +0300
parents 19a8a71eaa54
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>