摘要: SELECT table_schema AS '数据库', table_name AS '表名', table_rows AS '记录数', TRUNCATE ( data_length / 1024 / 1024, 2 ) AS '数据容量(MB)', TRUNCATE ( index_lengt 阅读全文
posted @ 2023-02-10 08:57 Mr_Xul 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 入口文件:Program.cs using Serilog; using Serilog.Events; // 创建Serilog Log.Logger = new LoggerConfiguration() .MinimumLevel.Override("Microsoft", LogEventL 阅读全文
posted @ 2023-01-16 14:35 Mr_Xul 阅读(3605) 评论(2) 推荐(3) 编辑
摘要: /// <summary> /// HTTP中间件 /// </summary> public class HttpMiddleware { /// <summary> /// 请求委托 /// </summary> private readonly RequestDelegate _next; / 阅读全文
posted @ 2023-01-16 14:26 Mr_Xul 阅读(848) 评论(0) 推荐(0) 编辑
摘要: 初始化(初始化之后的密码需要记一下,首次登录的时候需要用到) mysqld --initialize --console 安装(服务名称可选,默认为MySQL) mysqld install 服务名称 启动服务 net start 服务名称 停止服务 net stop 服务名称 登录 mysql - 阅读全文
posted @ 2022-11-17 11:40 Mr_Xul 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 在MySQL根目录新建a56爆大奖在线娱乐文件,修改名称为 my.ini 复制以下内容 # 客户端设置 [client] # 默认字符集 default-character-set = utf8 # 客户端口号 port = 3306 # 服务端设置 [mysqld] # 服务唯一编号,双击热备或多个MySQL实例 阅读全文
posted @ 2022-11-17 11:16 Mr_Xul 阅读(1444) 评论(0) 推荐(0) 编辑
摘要: 前提:需要安装WinRAR //文件压缩、解压 //CondenseRarOrZip(@"D:\fff", @"D:\vslz\ccc.rar",true,""); /// <summary> /// 压缩文件成RAR或ZIP文件(需存在Winrar.exe(只要自己电脑上可以解压或压缩文件就存在W 阅读全文
posted @ 2022-10-10 12:37 Mr_Xul 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 打开资源管理器 System.Diagnostics.Process.Start("explorer"); 打开资源管理器的指定文件夹 System.Diagnostics.Process.Start("explorer", "/e," + "文件夹路径"); 打开资源管理器的指定文件夹,并选择指定 阅读全文
posted @ 2022-10-10 12:33 Mr_Xul 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 依赖 EntityFramework Stub.System.Data.SQLite.Core.NetFramework System.Data.SQLite System.Data.SQLite.Core System.Data.SQLite.EF6 System.Data.SQLite.Linq 阅读全文
posted @ 2022-10-10 12:18 Mr_Xul 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 1 /// <summary> 2 /// 读取Excel文件 3 /// </summary> 4 /// <returns></returns> 5 public static DataSet ReadExcel(string path) 6 { 7 DataSet ds = new DataS 阅读全文
posted @ 2022-10-10 11:52 Mr_Xul 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 1 /// <summary> 2 /// 将DataTable数据,存储到一个Excel中(.xlsx) 3 /// </summary> 4 /// <param name="dt"></param> 5 /// <param name="filePath"></param> 6 public 阅读全文
posted @ 2022-10-10 11:51 Mr_Xul 阅读(40) 评论(0) 推荐(0) 编辑