On Wednesday, September 14, 2011 2:26:13 PM UTC-4, Influently NHiberater
wrote:
>
>
> On Wednesday, September 14, 2011 1:55:39 PM UTC-4, Tim Scott wrote:
>>
>> Try this:
>>
>> Map(x=>x.IsActive).Column("is_active").CustomType<*CharBooleanType*>()
>>
>> --
>> Tim Scott
>> Lunaverse Software
>>
>>
OK, just found that CharBooleanType is under NHibernate.Type. So, I tried
like what you said:
Map(x =>
x.IsActive).Column("is_active").CustomType<NHibernate.Type.CharBooleanType>();
No build error, but at compile time, I got this:
An invalid or incomplete configuration was used while creating a
SessionFactory. Check PotentialReasons collection, and InnerException for
more detail.
----> FluentNHibernate.Cfg.FluentConfigurationException : An invalid or
incomplete configuration was used while creating a SessionFactory. Check
PotentialReasons collection, and InnerException for more detail.
----> NHibernate.MappingException : Could not compile the mapping
document: (XmlDocument)
----> NHibernate.MappingException : Could not instantiate IType
CharBooleanType: System.MissingMethodException: Cannot create an abstract
class.
--
You received this message because you are subscribed to the Google Groups
"Fluent NHibernate" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/fluent-nhibernate/-/f9yCrRQed_YJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/fluent-nhibernate?hl=en.