That sounds right, I didn't make any changes to automapping. You could use
the ForTypesThatDeriveFrom call, as that will have the changes in.
// on your AutoPersistenceModel
ForTypesThatDeriveFrom<MyEntity>(m =>
m.HasMany(x => x.Properties)
.AsMap("Name"));
On Wed, Mar 25, 2009 at 5:26 PM, Peter <[email protected]> wrote:
>
> Hi James thank you very much:-)
>
> it works for my case for standard mapping. I tested automatic mapping
> too, but I guess automatic mapping is currently not supported.
> But your change works for standard mapping !
>
> If you are interested, the resulted hbm file is:
> <class name="Quote" table="`Quote`" xmlns="urn:nhibernate-
> mapping-2.2">
> <id name="Id" type="Int64" column="Id">
> <generator class="identity" />
> </id>
> <property name="Date_Time" type="DateTime">
> <column name="Date_Time" />
> </property>
> <map name="Properties">
> <key column="PropertyId" />
> <index type="System.String, mscorlib, Version=2.0.0.0,
> Culture=neutral, PublicKeyToken=b77a5c561934e089" column="Name" />
> <one-to-many class="Domain.Persistent.QuoteProperty, Domain,
> Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
> </map>
> </class>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---