添加业务层

This commit is contained in:
gongxh
2022-05-05 18:01:29 +08:00
parent 64ab02ec4c
commit 6635db5425
41 changed files with 3869 additions and 3 deletions

View File

@@ -26,9 +26,18 @@ namespace LeadDataBaseUtility
}
public static T ExecuteScalar<T>(string sql, object param = null)
{
using (SQLiteConnection conn = new SQLiteConnection(connectionString))
{
return conn.ExecuteScalar<T>(sql, param);
}
}
public static int ExecuteSql(string sql, object param = null)
public static int Execute(string sql, object param = null)
{
using (SQLiteConnection conn = new SQLiteConnection(connectionString))
{