Browse Source

Optimization error prompt

pull/31/head
sunkaixuan 2 years ago
parent
commit
66c399d2a2
  1. 4
      Src/Asp.NetCore2/SqlSugar/Realization/Sqlite/SqliteProvider.cs

4
Src/Asp.NetCore2/SqlSugar/Realization/Sqlite/SqliteProvider.cs

@ -21,6 +21,10 @@ namespace SqlSugar
try try
{ {
var SQLiteConnectionString = base.Context.CurrentConnectionConfig.ConnectionString; 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); base._DbConnection = new SqliteConnection(SQLiteConnectionString);
} }
catch (Exception ex) catch (Exception ex)

Loading…
Cancel
Save