Asp.net core 使用新表更新DbContext文件-asp.net core DB first approch
我已经在asp.net core 2.0中创建了项目,并使用命令行(dotnet ef DbContext scaffold…)创建了DbContext来生成上下文。现在我已经在SQLServer中创建了新表。Asp.net core 使用新表更新DbContext文件-asp.net core DB first approch,asp.net-core,entity-framework-core,Asp.net Core,Entity Framework Core,我已经在asp.net core 2.0中创建了项目,并使用命令行(dotnet ef DbContext scaffold…)创建了DbContext来生成上下文。现在我已经在SQLServer中创建了新表。 如何使用带有新表的命令行更新现有DbContext。再次运行dotnet ef DbContext scaffold。现在您已经为系统生成了DB上下文,我认为您可以切换到更方便的ef代码优先方法。看看这条线:
如何使用带有新表的命令行更新现有DbContext。再次运行
dotnet ef DbContext scaffold
。现在您已经为系统生成了DB上下文,我认为您可以切换到更方便的ef代码优先方法。看看这条线: