摘要:
原代码: from a in db.Files select new Files { Id = a.Id, FilePath = a.FilePath }).ToList(); 新代码: (from a in db.Files select new newFiles { Id = a.Id, Fil 阅读全文
摘要:
原代码: var para = new MySqlParameter() { ParameterName = "@p0", Value = UserName }; var result = db.Database.SqlQuery<int>(@"select count(id) from files 阅读全文
摘要:
备忘 开启日志记录: SET GLOBAL general_log = 'ON'; 将日志输出至系统表: SET GLOBAL log_output = 'TABLE' 查询: SELECT * from mysql.general_log ORDER BY event_time DESC 不用时记 阅读全文