5
|
1 <?xml version="1.0"?>
|
|
2 <package xmlns="http://implab.org/schemas/data-model.v1.xsd"
|
|
3 xmlns:f="http://implab.org/schemas/data-model/geo.v1.xsd" xmlns:clr="http://implab.org/schemas/data-model/dotnet.v1.xsd"
|
|
4 xmlns:sql="http://implab.org/schemas/data-model/sql.v1.xsd" xmlns:esri="http://geopallada.ru/schemas/data-model/esri.v1.xsd"
|
|
5 name="users" version="1.0" clr:namespace="Sample.Model">
|
|
6
|
|
7 <import href="types.xml"/>
|
|
8
|
|
9 <entity name="Gallery">
|
|
10 <primaryKey name="Id" type="uuid"/>
|
6
|
11 <hasMany name="ItemLinks" type="GallertItemLink">
|
|
12 <otherKey name="Item"/>
|
|
13 <clr:association/>
|
|
14 </hasMany>
|
5
|
15 </entity>
|
|
16
|
|
17 <entity name="GalleryItemLink">
|
6
|
18 <primaryKey name="Id">
|
|
19 <member name="Item"/>
|
|
20 <member name="Gallery"/>
|
5
|
21 </primaryKey>
|
6
|
22 <hasA name="Item" type="Item">
|
|
23 <thisKey name="ItemId" />
|
|
24 <clr:association />
|
|
25 <clr:lazy />
|
|
26 </hasA>
|
|
27 <hasA name="Gallery" type="Gallery">
|
|
28 <thisKey name="GalleryId" />
|
|
29 <clr:association />
|
|
30 <clr:lazy/>
|
|
31 </hasA>
|
|
32 </entity>
|
|
33
|
|
34 <entity name="Item">
|
|
35 <primaryKey name="Id" type="uuid"/>
|
|
36 <property name="href" type="text"/>
|
5
|
37 </entity>
|
|
38 </package> |