Mapping custom nhibernate types to parameters using Fluent Nhibernate

I have a custom nhibernate type that I would like to map to Fluent NHibernate.

The HBM mapping is as follows.

<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> 

I have successfully mapped a custom type, but I cannot find a way to configure the parameters when creating a custom type.

Is there a way to map this using free nhibernate?

+4
source share
1 answer

Fluent NHibernate does not provide this feature, but you can use the hbm.xml files for their respective mappings and use ClassMap for the rest.

+2
source

Source: https://habr.com/ru/post/1335189/


All Articles