diff --git a/Src/Asp.NetCore2/SqlSugar/Realization/Sqlite/SqliteProvider.cs b/Src/Asp.NetCore2/SqlSugar/Realization/Sqlite/SqliteProvider.cs index 68172784d..efd31d30e 100644 --- a/Src/Asp.NetCore2/SqlSugar/Realization/Sqlite/SqliteProvider.cs +++ b/Src/Asp.NetCore2/SqlSugar/Realization/Sqlite/SqliteProvider.cs @@ -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)