修改逻辑
This commit is contained in:
@@ -18,7 +18,7 @@ namespace LeadDataBaseUtility
|
||||
/// </summary>
|
||||
public abstract class LeadDbHelperSQLite
|
||||
{
|
||||
public static string connectionString = LeadConfigureConnectionString.getConnectionString("LeadSQLite");
|
||||
public static string connectionString = LeadConfigureConnectionString.getConnectionString("LeadSQLite");
|
||||
|
||||
/// <summary>
|
||||
/// 对SQLite数据库执行增删改操作,返回受影响的行数。
|
||||
@@ -99,7 +99,7 @@ namespace LeadDataBaseUtility
|
||||
return obj;
|
||||
}
|
||||
}
|
||||
catch (System.Data.SqlClient.SqlException e)
|
||||
catch (System.Data.SQLite.SQLiteException e)
|
||||
{
|
||||
connection.Close();
|
||||
LogHelper.WriteLog($"数据库运行异常:【{e.Message}】。SQL语句:【{SQLString}】。", LogTypeEum.DbErr);
|
||||
|
||||
Reference in New Issue
Block a user