DotNet Core3.1通过命令行生成Controller和Views
文章目录
全局安装/更新代码生成组件dotnet tool install -g dotnet-aspnet-codegeneratordotnet tool update -g dotnet-aspnet-codegenerator
使用命令生成DB-First的数据库model个DBContextScaffold-DbContext -Force "Database=KHBase;Data Source=huawei.g150.top;Port=3306 ;User Id=killbill;Password=147162hhu;Charset=utf8;TreatTinyAsBoolean=false;Allow User Variables=True" -Provider "Pomelo.EntityFrameworkCore.MySql" -OutputDir DatabaseContext
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论