上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 40 下一页
摘要: 在项目根目录下打开执行 1.增加迁移 > dotnet ef migrations add 名字 2.删除最近一次的迁移 > dotnet ef migrations remove 3.更新数据库 >dotnet ef database update 4.生成脚本 >dotnet ef migrat 阅读全文
posted @ 2020-03-14 21:04 b̶i̶n̶g̶.̶ 阅读(249) 评论(0) 推荐(0)
摘要: 解决办法: 打开终端,执行以下命名: dotnet tool update --global dotnet-ef 阅读全文
posted @ 2020-03-14 20:57 b̶i̶n̶g̶.̶ 阅读(160) 评论(0) 推荐(0)
摘要: https://github.com/WeihanLi/StackExchange.Redis-docs-zh-cn/blob/master/Basics.md 阅读全文
posted @ 2020-03-11 13:41 b̶i̶n̶g̶.̶ 阅读(176) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-03-07 21:25 b̶i̶n̶g̶.̶ 阅读(321) 评论(0) 推荐(0)
摘要: 解决方法 首先安装Nuget包: > Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation 然后在Startup里的ConfigureServices中加入如下片段: public void ConfigureServices(IServiceColle 阅读全文
posted @ 2020-03-04 17:42 b̶i̶n̶g̶.̶ 阅读(540) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2019-12-19 00:15 b̶i̶n̶g̶.̶ 阅读(8) 评论(0) 推荐(0)
摘要: //https全局配置 ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, errors) => true; 阅读全文
posted @ 2019-12-18 18:52 b̶i̶n̶g̶.̶ 阅读(279) 评论(0) 推荐(0)
摘要: 还可以这样子求Unix时间戳: (DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000 原文链接:https://www.cnblogs.com/yaosj/p/11230626.html 阅读全文
posted @ 2019-12-17 21:27 b̶i̶n̶g̶.̶ 阅读(252) 评论(0) 推荐(0)
摘要: db.createUser({user: "admin",pwd: "xxx",roles: ["root"]}); 阅读全文
posted @ 2019-12-17 19:21 b̶i̶n̶g̶.̶ 阅读(245) 评论(0) 推荐(0)
摘要: //1.创建修改的 实体对象 var model = new BlogArticle(); model.AId = 12; model.ATitle = "新的数据"; model.AContent = "新的数据~~~~~"; //2.添加到EF管理容器中,并获取 实体对象 的伪包装类对象 var 阅读全文
posted @ 2019-12-04 10:33 b̶i̶n̶g̶.̶ 阅读(462) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 40 下一页