The operation failed because an index or statistics with name 'IX_ID' already exists on table 'TestAs'?
问题 I'm using EF4.3.1 code first, I have the code as below, namespace ConsoleApplication5 { class Program { static void Main(string[] args) { using (var context = new myContext()) { TestA ta = new TestA(); ta.Name = "Hero"; TestB tb = new TestB(); tb.Name = "Allen"; TestC tc = new TestC(); tc.Name = "Iverson"; ta.tb = tb; ta.tc = tc; context.testASet.Add(ta); } } } class TestA { public int ID { get; set; } public string Name { get; set; } public TestB tb { get; set; } public TestC tc { get; set;