随笔分类 -  C#

摘要:桌面应用程序,通常使用app.config;Web应用程序,则使用web.config。 <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="DatabaseConnectionString" 阅读全文
posted @ 2024-12-02 12:32 新哲 阅读(93) 评论(0) 推荐(0)
摘要:api接口 [Verify][Route("DeviceAssess/MotorService")]public class MotorController : BaseController{ [HttpPost("RunConsoleMotor")] //public IActionResult 阅读全文
posted @ 2024-11-26 15:17 新哲 阅读(359) 评论(0) 推荐(0)
摘要:环境 .net7 MySQL8.0 报错提示: 未经处理的异常 System.AggregateException:“One or more errors occurred. (Authentication method 'caching_sha2_password' failed. Either 阅读全文
posted @ 2024-10-16 12:49 新哲 阅读(602) 评论(0) 推荐(0)
摘要:修改涂黑出的名称 路径 。。/Views/Account/_Layout.cshtml 阅读全文
posted @ 2020-02-13 14:48 新哲 阅读(624) 评论(0) 推荐(0)
摘要:web层 .js导出事件: //导出为excel文档 $('#btn-export').click(function () { //得到查询的参数 var temp = { //这里的键的名字和控制器的变量名必须一直,这边改动,控制器也需要改成一样的 ProcessSteps_RecordId: $ 阅读全文
posted @ 2019-08-01 22:53 新哲 阅读(725) 评论(0) 推荐(0)
摘要:/// <summary> /// 串口初始化 /// </summary> private void OpenSerialPort() { //串口号、波特率、停止位 有好多,选择你适合你电脑的 //串口号 serialPort1.PortName = "COM1"; //波特率 serialPo 阅读全文
posted @ 2019-02-25 20:37 新哲 阅读(1895) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; using System.Da 阅读全文
posted @ 2018-12-06 15:46 新哲 阅读(4384) 评论(0) 推荐(0)