mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Optimization error prompt
This commit is contained in:
parent
ed40c1604b
commit
66c399d2a2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user