上一页 1 2 3 4 5 6 7 ··· 89 下一页
摘要: 背景介绍:1.OperateLogInfo:日志表2.SystemUserInfo:用户表需求:查询日志表,要根据日志表的创建人id查询出创建人姓名(日志表连接用户表) public static string Test() { string result = null; var sqlLogs = 阅读全文
posted @ 2023-10-13 13:09 BloggerSb 阅读(294) 评论(0) 推荐(0)
摘要: 通过工具类 AppSettingsConfig services.AddSingleton(new AppSettingsConfig(configuration)); using Microsoft.Extensions.Configuration; using System; using Sys 阅读全文
posted @ 2023-09-07 14:47 BloggerSb 阅读(29) 评论(0) 推荐(0)
摘要: static void Main(string[] args) { var dictionary = new Dictionary<int, DateTime>(); var watch = Stopwatch.StartNew(); for (int i = 0; i < 1000000; i++ 阅读全文
posted @ 2023-09-04 10:59 BloggerSb 阅读(104) 评论(0) 推荐(0)
摘要: element-ui 的 table 组件 无法设置行高的问题因为需要改变table组件的 行高;试了好多方法;包括官方文档提供的方法cell-style,cell-class-name,虽然能加上样式但是没有效果,不知道啥原因,最后 发现 td 下面有个 class 为 cell 的div,于是修 阅读全文
posted @ 2023-04-21 11:52 BloggerSb 阅读(407) 评论(0) 推荐(0)
摘要: //内存缓存 services.AddMemoryCache(); services.AddDistributedMemoryCache(); services.AddSession(opts => { opts.IdleTimeout = TimeSpan.FromHours(8); //设置Se 阅读全文
posted @ 2023-03-29 17:19 BloggerSb 阅读(85) 评论(0) 推荐(1)
摘要: dbparameter是sqlparameter的基类 List<DbParameter> DbParameters = new List<DbParameter>(); var where = string.Empty; if (!string.IsNullOrWhiteSpace(Name)) 阅读全文
posted @ 2023-03-08 16:48 BloggerSb 阅读(162) 评论(0) 推荐(0)
摘要: services.AddTransient(typeof(IBaseRepository<,>), typeof(BaseRepository<,>)); 源文:https://www.cnblogs.com/RayWang/p/11165509.html 阅读全文
posted @ 2023-03-08 15:55 BloggerSb 阅读(38) 评论(0) 推荐(0)
摘要: 源文:https://www.cnblogs.com/pengchengzhong/p/6212378.html 阅读全文
posted @ 2023-03-01 10:12 BloggerSb 阅读(216) 评论(0) 推荐(0)
摘要: #region 上传图片到腾讯 public async Task<Result> UploadImageToWX(string background_pic_url) { var _result = new Result(); var token = GetWxGhAuthorizerAccess 阅读全文
posted @ 2022-12-16 16:33 BloggerSb 阅读(176) 评论(0) 推荐(0)
摘要: /// <summary> /// 通过地图上的两个坐标计算距离(C#版本) /// Add by 成长的小猪(Jason.Song) on 2017/11/01 /// http://blog.csdn.net/jasonsong2008 /// </summary> public class M 阅读全文
posted @ 2022-12-07 15:07 BloggerSb 阅读(181) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 89 下一页