Or an IUserType to only persist the enum value, and on load recreate
the State instance from the enum. I've used this technique on a number
of projects. The table can still be present in the database if you
like, as further insurance that only valid enum values are inserted.

2011/3/28 kor <[email protected]>:
> order.State = NhSession.Load<State>((long)StateEnum.Received);
>
> --
> You received this message because you are subscribed to the Google Groups 
> "nhusers" 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/nhusers?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en.

Reply via email to