From 5a6bbdd077b0f431642a79eecfd5e1513af4fc13 Mon Sep 17 00:00:00 2001 From: "DESKTOP-M4V1LH5\\Jin" Date: Thu, 27 Sep 2018 23:43:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- COMCMS.Web/Controllers/HomeController.cs | 2 ++ COMCMS.Web/appsettings.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/COMCMS.Web/Controllers/HomeController.cs b/COMCMS.Web/Controllers/HomeController.cs index 303f176..aa4c3cd 100644 --- a/COMCMS.Web/Controllers/HomeController.cs +++ b/COMCMS.Web/Controllers/HomeController.cs @@ -58,6 +58,8 @@ namespace COMCMS.Web.Controllers public IActionResult Contact() { Link l = Link.Find(Link._.Id == 1); + l.Title = "😂😂😂😂"; + l.Save(); return View(l); } diff --git a/COMCMS.Web/appsettings.json b/COMCMS.Web/appsettings.json index 3ce1f04..4631d76 100644 --- a/COMCMS.Web/appsettings.json +++ b/COMCMS.Web/appsettings.json @@ -13,7 +13,7 @@ }, "connectionStrings": { "dbconn": { - "connectionString": "Server=.;Port=3306;Database=comcms2;Uid=root;Pwd=root;SslMode=None", + "connectionString": "Server=.;Port=3306;Database=comcms2;Uid=root;Pwd=root;SslMode=None;charset=utf8mb4", "providerName": "MySql.Data.MySqlClient" }, "mssqlconnon": {