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 IDataBaseManager
|
|
|
|
|
{
|
2024-01-16 16:03:13 +08:00
|
|
|
|
string GetSqlByNameType(string name, Type type);
|
2023-07-10 18:21:15 +08:00
|
|
|
|
|
2024-01-16 16:03:13 +08:00
|
|
|
|
void InsertSql(string sql);
|
2023-06-27 15:46:42 +08:00
|
|
|
|
|
2024-01-16 16:03:13 +08:00
|
|
|
|
DbDataReader ExecuteReader(string sql);
|
2023-06-27 15:46:42 +08:00
|
|
|
|
|
2024-01-16 16:03:13 +08:00
|
|
|
|
int ExecuteNonQuery(string sql, bool isChangeDB = true);
|
2023-06-27 15:46:42 +08:00
|
|
|
|
|
2024-01-16 16:03:13 +08:00
|
|
|
|
int ExecuteNonQuery(string sql, string[] columnsName, params object[] args);
|
2023-06-28 15:29:13 +08:00
|
|
|
|
|
2024-01-16 16:03:13 +08:00
|
|
|
|
object ExecuteScalar(string sql, bool isChangeDB = true);
|
2023-06-27 15:46:42 +08:00
|
|
|
|
|
2024-01-16 16:03:13 +08:00
|
|
|
|
DataSet ExecuteDataSet(string sql);
|
2023-06-27 15:46:42 +08:00
|
|
|
|
|
2024-01-16 16:03:13 +08:00
|
|
|
|
DataTable ExecuteDataTable(string sql);
|
2023-06-27 15:46:42 +08:00
|
|
|
|
|
2024-01-16 16:03:13 +08:00
|
|
|
|
bool ExcuteTransAction(List<string> sqlList);
|
2023-06-27 15:46:42 +08:00
|
|
|
|
|
2024-01-16 16:03:13 +08:00
|
|
|
|
void CreateTable(string tableName, Dictionary<string, Type> columns, string primaryKey, Type primaryKeyType);
|
2023-06-28 15:29:13 +08:00
|
|
|
|
|
2024-01-16 16:03:13 +08:00
|
|
|
|
void CreateTableIndex(string table, string index, string sql);
|
|
|
|
|
|
|
|
|
|
string GetLocalDictionary();
|
2023-06-27 15:46:42 +08:00
|
|
|
|
}
|
|
|
|
|
}
|