本文介绍了找不到方法:'Void EntityFrameworkCore.Design.Internal.DbContextOperations的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试搭建支架并收到以下错误消息:

I am trying to scaffold and getting following error:

推荐答案

https://docs.microsoft.com/zh-cn/ef/core/get-started/aspnetcore/existing-db?view=aspnetcore -2.0#install-entity-framework

我怀疑您缺少脚手架所需的组件?我还假设您正在尝试对现有数据库进行逆向工程?

I suspect you are missing the assemblies that are necessary for scaffolding? I also assume you are trying to reverse engineer an existing db?

示例Scaffold-DbContext "Server=(localdb)\mssqllocaldb;Database=Blogging;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models

如果它失败,例如我找不到它,可能是pmc问题,请尝试关闭VS再试一次.之后,可能是缺少程序集的配置.

if it fails like i can't find it might be a pmc issue, try closing down VS try again. After that its probably a configuration with missing assemblies.

这篇关于找不到方法:'Void EntityFrameworkCore.Design.Internal.DbContextOperations的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 15:15