程序集中的重复类型名称

时间:2014-01-13 10:36:29

标签: entity-framework-4.1

我正在使用Effort和Entity Framework 4.1(代码优先)。当我创建假数据库并尝试添加一些东西时

DbConnection connection = Effort.DbConnectionFactory.CreateTransient();

using (var context = new LoveDatabaseContext(connection))
{
    context.Banners.Add(new Banners() { Enabled = true, Name = "Test", Priority = 1, Url = "http:\\test.com" });
}

我收到错误: System.ArgumentException:程序集中的重复类型名称。

我清理解决方案重建并且它对我不起作用

1 个答案:

答案 0 :(得分:0)

我发现在调试时会发生这种情况,在调用数据库之后放置断点。