Now I solved this with:
public class MyEnumUserTypeConvention : UserTypeConvention<MyEnumUserType> {
public override void Accept(IAcceptanceCriteria<IPropertyInspector> criteria) {
criteria.Expect(x => x.Type == typeof(GenericEnumMapper<MyEnum>));
}
public override void Apply(IPropertyInstance instance) {
instance.CustomType<MyEnumUserType>();
}
}
, . - , Fluent NHibernate, . - , Fluent NHibernate GenericEnumMapper, .