欢迎光临
我们一直在努力

NHibernate中ICompositeUserType和IUserType的区别

<
hibernate-mapping 
xmlns
=”urn:nhibernate-mapping-2.2″
 namespace
=”ThoughtSoft.CMS.Box”
 assembly
=”thoughtsoft.cms”
>

    

<
class 
name
=”BoxParamDao”
 table
=”Cms_Box_Param”
>

        

<
id 
name
=”BoxParamId”
 
>

            

<
column 
name
=”BOX_PARAM_ID”
 sql-type
=”nvarchar2″
 length
=”36″
 not-null
=”true”
/>

            

<
generator 
class
=”assigned”
 
/>

        

</
id
>

        

<
property 
name
=”BoxId”
 
>

            

<
column 
name
=”BOX_ID”
 sql-type
=”number(8,0)”
 not-null
=”true”
/>

        

</
property
>

        

<
property 
name
=”AttributeInfo”
 type
=”ThoughtSoft.CMS.Box.BoxParamCompositeType, thoughtsoft.cms”
>

            

<
column 
name
=”BOX_PARAM_TYPE”
 sql-type
=”nvarchar2″
 length
=”20″
 not-null
=”true”
/>

            

<
column 
name
=”BOX_PARAM_NAME”
 sql-type
=”nvarchar2″
 length
=”20″
 not-null
=”true”
/>

            

<
column 
name
=”BOX_PARAM_DESC”
 sql-type
=”nvarchar2″
 length
=”50″
 not-null
=”false”
/>

            

<
column 
name
=”BOX_PARAM_LEN”
 sql-type
=”nvarchar2″
 length
=”50″
 not-null
=”false”
/>

        

</
property
>

        

<
property 
name
=”Value”
 
>

            

<
column 
name
=”BOX_PARAM_VALUE”
 sql-type
=”nvarchar2″
 length
=”2000″
 not-null
=”false”
/>

        

</
property
>

    

</
class
>


</
hibernate-mapping
>

未经允许不得转载:大有博文 » NHibernate中ICompositeUserType和IUserType的区别
分享到: 更多 (0)

大前端WP主题 更专业 更方便

联系我们联系我们