Sic.Framework-Nanjing-Baishi/MECF.Framework.Common/Aitex/Core/RT/DBCore/IDataBase.cs

28 lines
708 B
C#
Raw Normal View History

2023-06-27 15:46:42 +08:00
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Aitex.Core.RT.DBCore
{
public interface IDataBase
{
public int ExecuteNonQuery(string sql, bool isChangeDB = true);
2023-06-28 15:29:13 +08:00
public int ExecuteNonQuery(string sql, string[] columnsName, params object[] args);
2023-06-27 15:46:42 +08:00
public DbDataReader ExecuteReader(string sql);
2023-06-28 18:26:50 +08:00
public object ExecuteScalar(string sql, bool isChangeDB = true);
2023-06-27 15:46:42 +08:00
public DataSet ExecuteDataSet(string sql);
public DataTable ExecuteDataTable(string sql);
public bool ExcuteTransAction(List<string> sqlList);
}
}