上一页 1 2 3 4 5 6 7 8 9 10 ··· 29 下一页
摘要: 想到动画,你可能会去安装Blazor的动画组件BlazorAnimate,然后使用它。本人初学,暂时我也不知道原理,先不用组件,自己实现吧。虽然项目中我用了AntDesignBlazor,但是我忘了使用它的菜单组件,我用的菜单组件还是VS2022自动生成的,后来我把这个菜单改造了一下,支持多级菜单, 阅读全文
posted @ 2023-01-07 16:15 0611163 阅读(716) 评论(0) 推荐(0)
摘要: 1. 维护自己造的轮子 2022年我的Gitee非常活跃,主要是维护自己造的轮子:TaskSchedulerEx、LogUtil、LiteSql、Dapper.LiteSql,经过自己努力维护,基本堪用,自己也在工作中使用了。在此过程中,学习了NuGet打包、单元测试、JMeter性能测试等。 2. 阅读全文
posted @ 2022-12-27 11:01 0611163 阅读(148) 评论(5) 推荐(0)
摘要: 正确使用 HttpClient 其实标题应该叫:在控制台程序中使用IHttpClientFactory 以前一直使用的是HttpWebRequest,.NET6工程代码提示已过时,使用HttpClient代替,所以尝试使用HttpClient。经过几天的学习探索,基本掌握了HttpClient的使用 阅读全文
posted @ 2022-12-06 16:52 0611163 阅读(814) 评论(11) 推荐(1)
摘要: ExpressionMapper代码 using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Data; using System.Data.Common; u 阅读全文
posted @ 2022-10-25 09:29 0611163 阅读(152) 评论(0) 推荐(0)
摘要: Python3写法 代码 # -*- coding: utf-8 -*- # 需求:年龄倒序,姓名正序 from itertools import chain from pypinyin import pinyin, Style class Student: def __init__(self, n 阅读全文
posted @ 2022-10-24 18:12 0611163 阅读(888) 评论(0) 推荐(0)
摘要: 创建索引: PUT http://IP:Port/mytest-statistics { "aliases": {}, "mappings": { "doc": { "dynamic": "false", "_all": { "enabled": false }, "properties": { " 阅读全文
posted @ 2022-09-02 17:34 0611163 阅读(278) 评论(0) 推荐(0)
摘要: 统计总数: GET mytest-statistics/_search { "size": 0, "query": { "bool": { "must": [ { "range": { "day": { "gte": "2022-09-01", "lte": "2022-09-01" } } } ] 阅读全文
posted @ 2022-09-02 17:08 0611163 阅读(210) 评论(0) 推荐(0)
摘要: ElasticSearch 精确查询统计 match_phrase:短语匹配,不分词 GET logback-2022-08/_search { "size": 1, //显示1条记录 "query": { "bool": { "must": [ { "match_phrase": { "app": 阅读全文
posted @ 2022-08-30 09:27 0611163 阅读(289) 评论(0) 推荐(0)
摘要: # 一个例子形象的理解协程和线程的区别 Talk is cheap, show me the code! 所以,废话先不说,先上代码: ## 首先写一个WebAPI接口 ```C# /// /// 测试接口 /// [RoutePrefix("api/test")] public class Tes 阅读全文
posted @ 2022-08-17 10:34 0611163 阅读(1541) 评论(1) 推荐(5)
摘要: 技术群里有人发了一段代码: 附言:兄弟们,这个单例怎么样? 我回复:什么鬼,看不懂啊?! 也有其他小伙伴表示看不懂,看来大家的C#基础和我一样并不全面。 我看不懂,主要是因为我没用过TaskCompletionSource和Interlocked的CompareExchange方法,然后经过我1、2 阅读全文
posted @ 2022-07-22 17:17 0611163 阅读(2091) 评论(7) 推荐(2)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 29 下一页