上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: 下载windows客户端 官方文档地址:https://www.elastic.co/guide/en/elasticsearch/client/net-api/6.x/introduction.html 效果图: 注:Elasticsearch客户端使用的是java环境,运行前先配置java环境。 阅读全文
posted @ 2018-08-02 16:29 ice.ko 阅读(384) 评论(0) 推荐(0) 编辑
摘要: List 去重 var newList = list.Where((x, i) => list.FindIndex(z => z.Name == x.Name) == i).ToList(); http下载文件,不保存到服务器,直接使用浏览器下载 /// <summary> /// 根据url下载文 阅读全文
posted @ 2018-06-07 15:15 ice.ko 阅读(649) 评论(0) 推荐(0) 编辑
摘要: EXPLAIN列详情 详细解读:https://www.cnblogs.com/yycc/p/7338894.html explain显示了mysql如何使用索引来处理select语句以及连接表。可以帮助选择更好的索引和写出更优化的查询语句。 使用方法,在select语句前加上explain就可以了 阅读全文
posted @ 2018-05-24 09:48 ice.ko 阅读(5547) 评论(0) 推荐(2) 编辑
摘要: 优化建议 应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如:select id from t where num is null可以在num上设置默认值0,确保表中num列没有null值,然后这样查询:select id from t whe 阅读全文
posted @ 2018-05-15 15:51 ice.ko 阅读(588) 评论(1) 推荐(2) 编辑
摘要: 1、新建类BaseController用于统一所有控制器继承扩展,方便扩展登录等过滤器。示例如下: using CloudWave.JustBeHere.JBH_H5.Controllers.Attribute; using CloudWave.JustBeHere.JBH_H5.Controlle 阅读全文
posted @ 2018-04-04 11:24 ice.ko 阅读(956) 评论(0) 推荐(0) 编辑
摘要: 记录css的样式设置,方便以后使用。 1、绝对定位,自适应父级大小css: html: 效果: 2、图片放置到文本框中: 效果: 3、按钮颜色渐变: 效果: 4、内容超过两行隐藏 效果: 阅读全文
posted @ 2018-03-29 13:49 ice.ko 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 修改Startup类方法ConfigureServices如下: controller构造函数调用如下: 瞬时瞬时(Transient)生命周期服务在它们每次请求时被创建。这一生命周期适合轻量级的,无状态的服务。 作用域作用域(Scoped)生命周期服务在每次请求被创建一次。 单例单例(Single 阅读全文
posted @ 2018-03-12 15:59 ice.ko 阅读(1159) 评论(0) 推荐(0) 编辑
摘要: Quartz.NET官网地址:https://www.quartz-scheduler.net/ Quartz.NET文档地址:https://www.quartz-scheduler.net/documentation/index.html Quartz.NET是一个开源的作业调度框架,是Open 阅读全文
posted @ 2018-03-01 16:47 ice.ko 阅读(16054) 评论(52) 推荐(32) 编辑
摘要: 之前一直想搞个后台任务管理系统,零零散散的搞到现在,也算完成了。 废话不多说,进入正题。 github地址:https://github.com/YANGKANG01/QuartzNetJob 一、项目结构 项目结构如下: ORM使用的是SqlSugar版本是4.6.4.3 QuartzNet使用的 阅读全文
posted @ 2018-02-28 17:13 ice.ko 阅读(7682) 评论(24) 推荐(8) 编辑
摘要: using System.Data; using System.Data.SqlClient; namespace DataService { public class SQLHelper { public static readonly string connString = "Server=127.0.0.1;Database=WinFormDemo;uid=... 阅读全文
posted @ 2018-02-02 15:54 ice.ko 阅读(793) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 7 ··· 9 下一页