Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sql-server-2005/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用Fluent nhibernate将nhibernate自定义类型与参数映射_Nhibernate_Fluent Nhibernate - Fatal编程技术网

使用Fluent nhibernate将nhibernate自定义类型与参数映射

使用Fluent nhibernate将nhibernate自定义类型与参数映射,nhibernate,fluent-nhibernate,Nhibernate,Fluent Nhibernate,我有一个nhibernate自定义类型,我想用Fluent nhibernate映射它 HBM映射如下所示 <property name="DateConvention" access="nosetter.camelcase-underscore" column="date_convention" not-null="true"> <type name="DataAccess.Types.DateConventionCustomType, Services.DataAcce

我有一个nhibernate自定义类型,我想用Fluent nhibernate映射它

HBM映射如下所示

<property name="DateConvention" access="nosetter.camelcase-underscore" column="date_convention" not-null="true">
  <type name="DataAccess.Types.DateConventionCustomType, Services.DataAccess">
    <param name="type">Services.Data.DateConventionTypeParameter, Services.Data</param>
  </type>
</property>

Services.Data.DateConventionTypeParameter,Services.Data
我已成功映射自定义类型,但找不到在自定义类型映射上配置参数的方法


有没有一种方法可以使用fluent nhibernate映射此功能?

fluent nhibernate不公开此功能,但您可以使用hbm.xml文件来映射需要它的映射,并使用ClassMap来映射其余部分