This does not seem to work with MySQL.

The SQL Query is something like this:

Create table foo (

            FooID INTEGER NOT NULL AUTO_INCREMENT,

            EnumProperty string,

            primary key (FooID)

);

 

I used Map(x => x.EnumProperty).CustomTypeIs(typeof(int)); with the
PersistenceModel on MySQL 5.0.74

 

Derick Bailey
Tue, 16 Dec 2008 09:32:29 -0800

@Craig,
> This seemed to work for me, but anyone speak up if this is wrong:
> 
> Map(x => x.SomeEnumProperty ).CustomTypeIs(typeof(int));
> 
> -Craig
 
 
D'OH! It would be something that simple. :) thanks Craig!
 
 
 

 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@googlegroups.com
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to