Program.cs using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace ModelFactory { static class Program { /// <summary> /// 应用程序的主入口点. /// </summary> [STAThread] sta…
附上启发链接:https://www.cnblogs.com/CreateMyself/p/5424894.html [HttpGet] public ActionResult Edit(int id) { var db = Congfig.MySqlConn; const string sql = "SELECT S,W FROM SW"; var result = db.ExecuteDataReader(sql); MySqlConnection con = new MySqlC…