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

29 lines
687 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;
namespace Aitex.Core.RT.DBCore
{
public interface IDataBase
{
string GetSqlByNameType(string name, Type type);
2023-07-10 18:21:15 +08:00
int ExecuteNonQuery(string sql, bool isChangeDB = true);
2023-06-27 15:46:42 +08:00
int ExecuteNonQuery(string sql, string[] columnsName, params object[] args);
2023-06-28 15:29:13 +08:00
DbDataReader ExecuteReader(string sql);
2023-06-27 15:46:42 +08:00
object ExecuteScalar(string sql, bool isChangeDB = true);
2023-06-27 15:46:42 +08:00
DataSet ExecuteDataSet(string sql);
2023-06-27 15:46:42 +08:00
DataTable ExecuteDataTable(string sql);
2023-06-27 15:46:42 +08:00
bool ExcuteTransAction(List<string> sqlList);
string GetLocalDictionary();
2023-06-27 15:46:42 +08:00
}
}