------------------------------------------------------------
public class Land {
public virtual IDictionary<string, int> Damages { get; set; }
}
------------------------------------------------------------
I'm using this code to try and automap it:
------------------------------------------------------------
var model = AutoMap.AssemblyOf<Land>().Where(t => t.Namespace ==
"Test.DomainModel");
Fluently.Configure()
.Database(SQLiteConfiguration.Standard.InMemory)
.Mappings(m => m.AutoMappings.Add(model)
.BuildSessionFactory();
------------------------------------------------------------
When I execute the configurer, I get the following exception:
"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."
A search on Google seems to indicate that this issue has been around
for a while now, but no solutions have turned up. Does the automapper
support dictionaries? Or is this a known issue that hasn't been
resolved yet?
> --
>
> You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group.
> To post to this group, send email to fluent-n...@googlegroups.com.
> To unsubscribe from this group, send email to fluent-nhibern...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en.
>
>
>
On 28 Dec, 12:57, James Gregory <jagregory....@gmail.com> wrote:
> Aye, just use an IAutomappingOverride for the entity in question.
>
> > fluent-nhibern...@googlegroups.com<fluent-nhibernate%2Bunsu...@googlegroups.com>
> > .
> > > For more options, visit this group at
> >http://groups.google.com/group/fluent-nhibernate?hl=en.
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Fluent NHibernate" group.
> > To post to this group, send email to fluent-n...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > fluent-nhibern...@googlegroups.com<fluent-nhibernate%2Bunsu...@googlegroups.com>
Marcus, you should exclude the entire class from automapping and
fluently map it.
2009/12/29 marcus <mar...@meridium.se>:
> To unsubscribe from this group, send email to fluent-nhibern...@googlegroups.com.