mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Optimize error message
This commit is contained in:
parent
42653588ad
commit
e661d2103d
@ -20,6 +20,7 @@ namespace SqlSugar
|
||||
try
|
||||
{
|
||||
var mySqlConnectionString = base.Context.CurrentConnectionConfig.ConnectionString;
|
||||
Check.ExceptionEasy(mySqlConnectionString == null, "ConnectionString is not null", "连接字符串ConnectionString不能为Null");
|
||||
if (!mySqlConnectionString.ToLower().Contains("charset")&& !mySqlConnectionString.ToLower().Contains("character"))
|
||||
{
|
||||
mySqlConnectionString = mySqlConnectionString.Trim().TrimEnd(';') + ";charset=utf8;";
|
||||
|
Loading…
Reference in New Issue
Block a user