摘要: 匹配规则 模糊匹配 var Command = redis.SetScan(CommandKey.CreateTLJResultRedis, $"*?CommandID?:?{CommandID}?*").FirstOrDefault(); 精准匹配 var Command = redis.SetS 阅读全文
posted @ 2020-11-26 10:20 ITMrRight 阅读(2348) 评论(0) 推荐(0) 编辑
摘要: 前端我这里是用layui <button type="button" class="layui-btn" id="test3"><i class="layui-icon"></i>上传文件</button> js代码 //指定允许上传的文件类型 upload.render({ elem: '#te 阅读全文
posted @ 2020-10-14 21:11 ITMrRight 阅读(646) 评论(1) 推荐(1) 编辑
摘要: <!doctype html><html><head><meta charset='UTF-8'><meta name='viewport' content='width=device-width initial-scale=1'><title>.Net Core微服务入门全纪录(一)——项目搭建< 阅读全文
posted @ 2020-09-17 12:10 ITMrRight 阅读(200) 评论(0) 推荐(0) 编辑
摘要: using (var order = new OrderContext(DbMode.Slave1)) { List<Test> t = new List<Test>(); t.Add(new Test() { id = 1, name = "fffff" }); t.Add(new Test() 阅读全文
posted @ 2020-08-19 19:57 ITMrRight 阅读(618) 评论(0) 推荐(0) 编辑
摘要: CREATE TABLE [StudentScores]( [UserName] NVARCHAR(20), --学生姓名 [Subject] NVARCHAR(30), --科目 [Score] FLOAT, --成绩) INSERT INTO [StudentScores] SELECT '张三 阅读全文
posted @ 2020-07-15 14:13 ITMrRight 阅读(484) 评论(0) 推荐(0) 编辑
摘要: ///方法一: 单独写入txt文件中 public static string registered(BatteryInfoDto B) { //判断是否已经有了这个文件 if (!System.IO.File.Exists("c:\\testtxt.txt")) { //没有则创建这个文件 Fil 阅读全文
posted @ 2020-06-09 18:37 ITMrRight 阅读(2418) 评论(0) 推荐(0) 编辑
摘要: C# 字符串倒序输出 string str= “12345”;char[] ch = str.ToArray();//把文本框你的内容转换为char类型数组Array.Reverse(ch, 0, str.Length);//使用Array类的Reverse方法颠倒数据var str2 = new 阅读全文
posted @ 2020-06-09 11:30 ITMrRight 阅读(760) 评论(0) 推荐(0) 编辑
摘要: 报错问题 解决方案 1.登录腾讯云/阿里云,找到控制台,找到服务器配置安全组 把sql server 端口号配置进去 2.登录远程桌面找到数据库管理 这里有个tcp需要启用,让后点击属性,配置一下IP和查看是否启用 3.重启sql server 服务 再远程连接试试,应该就可以了 阅读全文
posted @ 2020-04-24 17:36 ITMrRight 阅读(517) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Threading.Tasks;using Microsoft.AspNetCore.Builder;using 阅读全文
posted @ 2020-04-10 10:19 ITMrRight 阅读(453) 评论(0) 推荐(0) 编辑
摘要: 1.运行你本地的项目 2.在电脑右下角找到iis express正在运行的程序 3点击当然运行的localhost项目,会出现配置 4.点击配置,打开文件 5.找到 <!--这一行是原来的--> <binding protocol="http" bindingInformation="*:18330 阅读全文
posted @ 2020-01-13 11:47 ITMrRight 阅读(2416) 评论(2) 推荐(0) 编辑