I use   Map(x => x.EnumTypeProperty).CustomTypeIs(typeof(int)); Works fine
since yesterday. There was a patch yesterday afaik.

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Guido Ziliotti
Sent: Freitag, 20. Februar 2009 14:06
To: [email protected]
Subject: [fluent-nhib] Re: Mapping an enum with DB type as int (sorry for
the double posting, if any)

 

I use the mapping: Map(x => x.EnumType).CustomSqlTypeIs(typeof(int))

 

and had no trouble so far

On Thu, Feb 12, 2009 at 9:39 PM, blindwillie <[email protected]> wrote:


Hi

I may have been double posting, but I could not find my first mail on
the list to submit additional information. I apologize if it's just me
being too impatient.

Well... My former post was about mapping nullable enums, but I now
find, that this applies to all enums that maps to an int column in the
DB.

I use the mapping: Map(x => x.EnumType).CustomTypeIs(typeof(int))

It has worked before, but I have now updated to trunk, and now I get
an NHibernate exception when i get the entity, that says "Cannot parse
2 as EnumType".

Any one knows why?

Sincerely, Asger



 




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to