EF Core 升级到 7.0 后运行时报错,报错信息如下:
System.MissingMethodException : Method not found: 'System.Collections.Generic.IList`1<Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention> Microsoft.EntityFrameworkCore.Metadata.Conventions.ConventionSet.get_ModelFinalizingConventions()'.
Stack Trace:
at Microsoft.EntityFrameworkCore.InMemory.Metadata.Conventions.InMemoryConventionSetBuilder.CreateConventionSet()
请问如何解决?
是 Microsoft.EntityFrameworkCore.InMemory
版本不对引起的,所引用的一个 nuget 包引用的还是 6.0 版