摘要: public class Verify : AuthorizeAttribute { public override void OnAuthorization(AuthorizationContext filterContext) { var user = filterContext.HttpContext.Session["CurrentUser"]; if (filterContext.Act 阅读全文
posted @ 2019-10-07 00:02 sanpi1992 阅读(1856) 评论(1) 推荐(0) 编辑
摘要: 网上查了好久没查到,以为是自己安装vs有问题,最后有重新安装了vs2019还是报同样的错误,然后想起了之前遇到的问题,猜测是不是nuget里面引用的部分dll的版本问题。最后试了一下果然是哦。 解决方法就是手动升级项目里面的nuget应用的模块到你安装vs的最高版本就可以了。 在升级的过程中要注意先 阅读全文
posted @ 2019-05-10 12:33 sanpi1992 阅读(6859) 评论(0) 推荐(0) 编辑
摘要: try { using (MySqlConnection conn = new MySqlConnection("Database=Database;Data Source=127.0.0.1;User Id=root;Password=123456;pooling=false;CharSet=utf8")) ... 阅读全文
posted @ 2018-12-24 11:54 sanpi1992 阅读(4053) 评论(0) 推荐(0) 编辑
摘要: USE MASTER GO DECLARE @dbname SYSNAME SET @dbname = 'EducationManagementSystem' -- 这个是要删除的数据库库名 DECLARE @s NVARCHAR( 1000) DECLARE tb CURSOR LOCAL FOR SELECT s = 'kill ' + CAST( spid... 阅读全文
posted @ 2018-12-24 11:51 sanpi1992 阅读(459) 评论(0) 推荐(0) 编辑
摘要: 1 SELECT 2 HOUR (时间) AS HOUR, 3 COUNT( 4 CASE 5 WHEN orderlist.State = 1 THEN 6 orderlist.State 7 END 8 ) AS suCount, 9 COUNT( 10 CASE 11 WHEN orderli 阅读全文
posted @ 2018-12-24 11:41 sanpi1992 阅读(559) 评论(0) 推荐(0) 编辑
摘要: FtpInfo类 FtpInfoXML文件 读取函数 阅读全文
posted @ 2017-07-12 09:38 sanpi1992 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 class Program 7 { 8 9 /// 10 /// 11 ... 阅读全文
posted @ 2017-07-11 11:27 sanpi1992 阅读(1262) 评论(0) 推荐(0) 编辑
摘要: 启动 %SystemRoot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe E:\Debug\WindowsServiceTest.exe Net Start FileService sc config FileService start= 阅读全文
posted @ 2017-07-11 11:26 sanpi1992 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 1 Process p = new Process(); 2 ProcessStartInfo pi = new ProcessStartInfo(); 3 pi.FileName = "cmd.exe"; 4 ... 阅读全文
posted @ 2017-07-11 11:23 sanpi1992 阅读(353) 评论(0) 推荐(0) 编辑
摘要: #define CIMAGE_H #include #include class QLabel; class QLineEdit; class QPushButton; class CImage:public QDialog { Q_OBJECT public: CImage(QWidget *parent=0); virtual ~CImage() {} private: QLabel *... 阅读全文
posted @ 2016-05-31 20:22 sanpi1992 阅读(4936) 评论(0) 推荐(0) 编辑