Mercurial > pub > ModelGenerator
diff data/csmodel.xml @ 0:cbdada054b4a
Basic schemas for generating csharp internal dom from model definition
author | cin |
---|---|
date | Wed, 21 Feb 2018 03:01:53 +0300 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/data/csmodel.xml Wed Feb 21 03:01:53 2018 +0300 @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<code xmlns="http://implab.org/schemas/code-dom/csharp.v1.xsd"> + <namespace name="Pallada.PoiskMore.Model"> + <using name="System"/> + <using name="Linq2Db"/> + <using name="Data"/> + + <class name="SarRcc" modifiers="public partial"> + <extends name="AbstractEntity"/> + <implements name="INotifyPropertyChange"/> + + <property name="Id" type="Guid" modifiers="public"> + <attribute/> + </property> + + <property name="Name" type="string" modifiers="public" binding="true"> + <attribute type="Column" params='"rccname", NotNull=true'/> + <get/> + <set/> + </property> + + <property name="Master" type="SarRcc" nullable="false"> + <generateAssociation/> + </property> + </class> + </namespace> +</code> \ No newline at end of file