Entity Framework Exception: Ambiguous match found

后端 未结 2 509
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-18 13:55

I get the error:

Ambiguous match found

During this code on the .Add

var db = new NexusEntities(); 
db.Reports.Ad         


        
2条回答
  •  旧巷少年郎
    2021-01-18 14:15

    Although this is probably a much less likely scenario, but we were running EF Core 1.0 which had only one version of the Include() method... in version 1.1, Microsoft added a second implementation (the string version) and since we were calling this method dynamically we got this error after updating our EF Core to 1.1

提交回复
热议问题