c# - 无法解析符号“UseIdentityColumns”
问题描述
我有带有迁移的 .NET Core 3 项目(代码优先方法)
当我创建迁移时,我有ApplicationDbContextModelSnapshot
文件
迁移已成功创建,但是当我进行此操作时dotnet ef database update
出现此错误。
ApplicationDbContextModelSnapshot.cs(18, 18): [CS1061] 'ModelBuilder' does not contain a definition for 'UseIdentityColumns' and no accessible extension method 'UseIdentityColumns' accepting a first argument of type 'ModelBuilder' could be found (are you missing a using directive or an assembly reference?)
我该如何解决这个问题?
解决方案
推荐阅读
- python - 如何在python中创建一棵树?
- haskell - Haskell 试图在 if 上实现 null 函数
- angular - 如何使用 Angular 变量作为 iframe src url 的一部分?
- c++ - 如何在不使用循环的情况下回到我的代码顶部?
- c++ - 避免在返回当前对象时复制
- reactjs - 如果 onChange 事件在一秒钟内触发多次,如何提高性能
- apache-spark - 性能问题 Spark LSH MinHash approxSimilarityJoin
- php - 使用 PHP Composer 开发本地包,然后在部署时复制它
- php - PHP - 强制第一个字母大写,其他小写,大写例外
- c++ - give_me_a_name 是什么意思?