I'm trying to map

public virtual IDictionary<Variation, string> Values { get; set; }

property. Here, Variation is another class. But it is the same with
both strings.
I tried all the solutions I found in google, mapping.HasMany(x =>
x.Values).AsMap("test1"), generic versions of HasMany, even
AsTernaryOperation...

No matter what I do, I always get
System.ArgumentException: The type or method has 2 generic parameter
(s), but 1 generic argument(s) were provided. A generic argument must
be provided for each generic parameter.

Basically, I do class VariationValue { Variation; string } and then
IList<VariationValue> and it works... but then to find the proper
Variation I have to do foreach, instead of just Values[myvariation]. I
could live with IDictionary<string, string> but it produces the same
error.

I use (almost) latest Fluent NHibernate built from revision 544.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to