我们有一个使用.Net数据库的PSQLCore2.0API。当更新到.Net核心2.1时,它停止构建并返回以下错误:
'IMutableEntityType' does not contain a definition for 'Scaffolding' and no extension method 'Scaffolding' accepting a first argument of type 'IMutableEntityType' could be found (are you missing a using directive or an assembly reference?)此扩展方法并不打算供外部使用,但我们需要它来在运行时更改实体模式。
发布于 2018-07-21 07:22:00
这是一个单行,但我花了一些时间才发现我必须改变
builder.Entity(type).Metadata.Scaffolding();至
builder.Entity(type).Metadata.Relational();我希望它能帮助一些人。
https://stackoverflow.com/questions/51451484
复制相似问题