I once just had a 'Type' type property and NHib did it all for me
without any IUserType...haven't had to do that in a while though so
maybe it is different.
So this
class MyClass{
Type MyStrategy{ get;set;}
}
would 'just work'
<property name="MyStrategy"/>
Nhib wrote the qualifed name to the db as Fabio said.
On Nov 21, 7:52 pm, "Fabio Maulo" <[EMAIL PROTECTED]> wrote:
> 2008/11/21 Jan Limpens <[EMAIL PROTECTED]>
>
>
>
> > > What you want persist into a DataBase if you don't have data ?
>
> > I'd persist behavior and try to use strategy instead of inheritance,
> > to modify behavior.
> > I want to persist the name of the class that defines this
> > behavior/strategy. Where else could I do that, if not in the db?
>
> I don't study you usecase. Ok in a "old" app, base on NH, I done the same
> using an implementation of IUserType to persist the AssemblyQualifiedName of
> the class.
> Today, probably, the solution would be different (I'm not sure)
> --
> Fabio Maulo
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---