我有一个像这样的实体:
public class Land
{
public virtual IDictionary<string, int> Damages { get; set; }
// and other properties
}
每次我尝试使用以下代码进行自动映射时:
var sessionFactory = Fluently.Configure()
.Database(SQLiteConfiguration.Standard.InMemory)
.Mappings(m => m.AutoMappings.Add(AutoMap.AssemblyOf<Land>))
.BuildSessionFactory();
我收到以下错误:
{"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."}
有人可以告诉我我做错了什么吗?此外,这只是一个简单的例子。我的字典比这本要多得多。