修改逻辑

This commit is contained in:
gongxh
2022-01-18 14:42:23 +08:00
parent 9b3b616f83
commit 39c4c20fee
8 changed files with 29 additions and 23 deletions

View File

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net48</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>

View File

@@ -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);