You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
using System ;
using System.Collections.Generic ;
using System.Data ;
using System.Linq ;
using System.Text ;
using System.Threading.Tasks ;
namespace DAL
{
public interface IDbInterface
{
object GetSingle ( string SQLString ) ;
/// <summary>
/// 是否存在
/// </summary>
/// <param name="strSql"></param>
/// <returns></returns>
bool Exists ( string strSql ) ;
/// <summary>
/// 执行多条SQL语句, 实现数据库事务。
/// </summary>
/// <param name="SQLStringList">多条SQL语句</param>
int ExecuteSqlTran ( List < String > SQLStringList ) ;
/// <summary>
/// 执行多条SQL语句, 实现数据库事务。
/// </summary>
/// <param name="SQLStringList">多条SQL语句</param>
bool ExecuteSqlTran ( List < string > sqlList , List < IDataParameter [ ] > cmdParamList ) ;
/// <summary>
/// 执行查询语句, 返回DataSet
/// </summary>
/// <param name="SQLString">查询语句</param>
/// <returns>DataSet</returns>
DataSet Query ( string SQLString ) ;
/// <summary>
/// 执行SQL语句, 返回影响的记录数
/// </summary>
/// <param name="SQLString">SQL语句</param>
/// <returns>影响的记录数</returns>
int ExecuteSql ( string SQLString , params IDataParameter [ ] cmdParms ) ;
/// <summary>
/// 执行SQL语句, 返回影响的记录数
/// </summary>
/// <param name="SQLString">SQL语句</param>
/// <returns>影响的记录数</returns>
int ExecuteSql ( string SQLString ) ;
}
}