Auto mapping a IDictionary<string, myclass> with fluent nhibernate

Posted by Marcus on Stack Overflow See other posts from Stack Overflow or by Marcus
Published on 2009-12-09T17:22:31Z Indexed on 2010/05/11 1:54 UTC
Read the original article Hit count: 354

Filed under:
|

I have a simple class that looks like this:

public class Item {
 // some properties
public virtual IDictionary<string, Detail> Details { get; private set; }
}

and then I have a map that looks like this:

map.HasMany(x => x.Details).AsMap<string>("Name").AsIndexedCollection<string>("Name", c => c.GetIndexMapping()).Cascade.All().KeyColumn("Item_Id"))

with this map I get the following error and I don't know how to solve it?

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.

© Stack Overflow or respective owner

Related posts about fluent-nhibernate

Related posts about c#