@Steve

Yeah I get the state thing but all I want is a simple Enum to DB int
mechanism.
>From my previous post I don't think this is currently working in the
AutoMapper.

Thanks, Mark

On Feb 12, 2:50 pm, Steven Harman <stevehar...@gmail.com> wrote:
> Mark,
> I like Derick Bailey's approach to solving this - Mapping a State Pattern
> with 
> NHibernate:http://www.lostechies.com/blogs/derickbailey/archive/2008/11/26/mappi...
>
> -steve
>
> //----  90% of being smart is knowing what you're dumb at  
> ----//http://stevenharman.net/
>
> On Thu, Feb 12, 2009 at 9:12 AM, Mark Perry <markperr...@googlemail.com>wrote:
>
>
>
> > Hi
>
> > Sorry to keep pestering the list like this I feel like I'm being a
> > right pain in the [insert word here].
>
> > I wanted to have to AutoMapper map one of my properties which is an
> > Enum but it seems as
> > if the AutoMapper just ignores it.
>
> > I know there is an example on the wiki
> >http://wiki.fluentnhibernate.org/show/AutoMappingTypeConventions
> > but I just want to store my enum as an Int in the Db and have it as an
> > enum in my object and not go to the
> > length of implementing IUserType.
>
> > I think I need to add an ITypeConvention to handle my EnumType and add
> > a custom attribute to describe
> > the type of my enum?
>
> > Am I along the right lines here?
>
> > Thanks, Mark
--~--~---------~--~----~------------~-------~--~----~
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