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

35 lines
922 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 IDataBaseManager
{
string GetSqlByNameType(string name, Type type);
2023-07-10 18:21:15 +08:00
void InsertSql(string sql);
2023-06-27 15:46:42 +08:00
DbDataReader ExecuteReader(string sql);
2023-06-27 15:46:42 +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
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);
2023-06-27 15:46:42 +08:00
void CreateTable(string tableName, Dictionary<string, Type> columns, string primaryKey, Type primaryKeyType);
2023-06-28 15:29:13 +08:00
void CreateTableIndex(string table, string index, string sql);
string GetLocalDictionary();
2023-06-27 15:46:42 +08:00
}
}