Optimization error prompt

This commit is contained in:
sunkaixuan 2023-03-09 22:00:42 +08:00
parent ed40c1604b
commit 66c399d2a2

View File

@ -21,6 +21,10 @@ namespace SqlSugar
try
{
var SQLiteConnectionString = base.Context.CurrentConnectionConfig.ConnectionString;
if (SQLiteConnectionString!=null&&!SQLiteConnectionString.Contains("="))
{
Check.ExceptionEasy("ConnString format error . Correct format DataSource=...", "字符串格式错误应该是DataSource=...");
}
base._DbConnection = new SqliteConnection(SQLiteConnectionString);
}
catch (Exception ex)