九阴九阳txt下载,女人祼体照片,哈尔滨出租房
在基础设施层(即jd.crs.entityframeworkcore)打开数据库环境设置
jd.crs.entityframeworkcore/entityframeworkcore/crsdbcontext.cs
添加一行
public dbset<course> course { get; set; } //创建数据表course
1 using microsoft.entityframeworkcore; 2 using abp.zero.entityframeworkcore; 3 using jd.crs.authorization.roles; 4 using jd.crs.authorization.users; 5 using jd.crs.multitenancy; 6 using jd.crs.entitys; 7 8 namespace jd.crs.entityframeworkcore 9 { 10 public class crsdbcontext : abpzerodbcontext<tenant, role, user, crsdbcontext> 11 { 12 /* define a dbset for each entity of the application */ 13 14 public crsdbcontext(dbcontextoptions<crsdbcontext> options) 15 : base(options) 16 { 17 } 18 19 public dbset<course> course { get; set; } 20 21 } 22 }
打开工具 / nuget包管理器 / 程序包管理器控制台
默认项目选择jd.crs.entityframeworkcore
依次执行以下命令即可
add-migration 'addcourse'
update-database -verbose
打开ms sql server,可以看到新增的表course.
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
Net Core Web Api项目与在NginX下发布的方法
asp.net core3.1 引用的元包dll版本兼容性问题解决方案
IdentityServer4实现.Net Core API接口权限认证(快速入门)
ASP.NET Core MVC通过IViewLocationExpander扩展视图搜索路径的实现
网友评论