上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 39 下一页
摘要: 1.在创建索引的时候,如果索引中的数据列只有一个,那么不管是升序还是降序的定义,在查询中使用成本都是一样的。 2.如果索引中的数据列有多个,那么每一个列的升序和降序就非常的重要,如果在查询中的列的排序和索引中定义的不一样,成本就很大,反正,就很小。 原文出处:http://blog.chinauni 阅读全文
posted @ 2020-04-01 23:08 b̶i̶n̶g̶.̶ 阅读(674) 评论(0) 推荐(0) 编辑
摘要: 一、事务的并发问题 1、脏读:事务A读取了事务B更新的数据,然后B回滚操作,那么A读取到的数据是脏数据 2、不可重复读:事务 A 多次读取同一数据,事务 B 在事务A多次读取的过程中,对数据作了更新并提交,导致事务A多次读取同一数据时,结果 不一致。 3、幻读:系统管理员A将数据库中所有学生的成绩从 阅读全文
posted @ 2020-03-31 11:44 b̶i̶n̶g̶.̶ 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 一、中间件实例 /// <summary> /// 请求日志中间件 /// </summary> public class RequestLogMiddleWare { private static readonly object o = new object(); private readonly 阅读全文
posted @ 2020-03-26 10:49 b̶i̶n̶g̶.̶ 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 原文:https://www.cnblogs.com/Leo_wl/p/7508650.html 阅读全文
posted @ 2020-03-25 16:31 b̶i̶n̶g̶.̶ 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 在项目根目录下打开执行 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̶.̶ 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 解决办法: 打开终端,执行以下命名: dotnet tool update --global dotnet-ef 阅读全文
posted @ 2020-03-14 20:57 b̶i̶n̶g̶.̶ 阅读(152) 评论(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̶.̶ 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-03-07 21:25 b̶i̶n̶g̶.̶ 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 解决方法 首先安装Nuget包: > Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation 然后在Startup里的ConfigureServices中加入如下片段: public void ConfigureServices(IServiceColle 阅读全文
posted @ 2020-03-04 17:42 b̶i̶n̶g̶.̶ 阅读(531) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2019-12-19 00:15 b̶i̶n̶g̶.̶ 阅读(8) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 39 下一页