| 
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">
 | 
| 
9
 | 
    10 		<primaryKey name="GalleryPk">
 | 
| 
 | 
    11 			<member name="Id" type="Gallery"/>
 | 
| 
 | 
    12 		</primaryKey>
 | 
| 
 | 
    13 		
 | 
| 
 | 
    14 		<property name="Id" type="uuid" special="true">
 | 
| 
 | 
    15 			<hiddenBy name="GalleryPk" type="Gallery"/>
 | 
| 
 | 
    16 			<clr:autoGenrated/>
 | 
| 
 | 
    17 		</property>
 | 
| 
 | 
    18 		
 | 
| 
6
 | 
    19 		<hasMany name="ItemLinks" type="GallertItemLink">
 | 
| 
 | 
    20 			<otherKey name="Item"/>
 | 
| 
 | 
    21 			<clr:association/>
 | 
| 
 | 
    22 		</hasMany>
 | 
| 
5
 | 
    23 	</entity>
 | 
| 
 | 
    24 	
 | 
| 
 | 
    25 	<entity name="GalleryItemLink">
 | 
| 
6
 | 
    26 		<primaryKey name="Id">
 | 
| 
 | 
    27 			<member name="Item"/>
 | 
| 
 | 
    28 			<member name="Gallery"/>
 | 
| 
5
 | 
    29 		</primaryKey>
 | 
| 
6
 | 
    30 		<hasA name="Item" type="Item">
 | 
| 
 | 
    31 			<thisKey name="ItemId" />
 | 
| 
 | 
    32 			<clr:association />
 | 
| 
 | 
    33 			<clr:lazy />
 | 
| 
 | 
    34 		</hasA>
 | 
| 
 | 
    35 		<hasA name="Gallery" type="Gallery">
 | 
| 
 | 
    36 			<thisKey name="GalleryId" />
 | 
| 
 | 
    37 			<clr:association />
 | 
| 
 | 
    38 			<clr:lazy/>
 | 
| 
 | 
    39 		</hasA>
 | 
| 
 | 
    40 	</entity>
 | 
| 
 | 
    41 	
 | 
| 
 | 
    42 	<entity name="Item">
 | 
| 
 | 
    43 		<primaryKey name="Id" type="uuid"/>
 | 
| 
 | 
    44 		<property name="href" type="text"/>
 | 
| 
5
 | 
    45 	</entity>
 | 
| 
 | 
    46 </package> |