Peter: I've just committed a change that should hopefully work for you. If
you get the latest source, then try this:
HasMany(x => x.Properties)
.AsMap("Name")
.KeyColumnNames.Add("PropertyId");
On Wed, Mar 25, 2009 at 3:09 PM, Peter <[email protected]> wrote:
>
> I have tried the following after searching the sources, ....
>
> HasMany(x => x.Properties).AsMap<string>(index => index.WithColumn
> ("Id").WithType<string>(),
> element => element.WithColumn
> ("Value").WithType<QuoteProperty>());
>
> But I have received the following exception:
>
> Data.Tests.Quote_Mapping_Tests (TestFixtureSetUp):
> NHibernate.MappingException : Could not determine type for:
> Domain.Persistent.QuoteProperty, Domain, Version=1.0.0.0,
> Culture=neutral, PublicKeyToken=null, for columns:
> NHibernate.Mapping.Column(Value)
>
> Please let me know what I do wrong.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---