我第一次单独工作在一个项目上,也是第一次尝试从现有的数据库中搭建模型。有关错误,请参阅附件中的图片。 Scaffold-DbContext "Server=.\SAPAS_LOCAL_TEST;Database=SAPAS_TEST;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models 生成已开始...生成成功。 The key {'YearId'} cannot be added to keyless type 'TlkupYear
当更新到.Net核心2.1时,它停止构建并返回以下错误:
'IMutableEntityType' does not contain a definition for 'Scaffolding' andno extension method 'Scaffolding' accepting a first argument of type 'IMutableEntityType' could be found