using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq.Expressions;
using System.Threading.Tasks;
using Dapper;
namespace Tiobon.Core.Common.DB.Dapper;
public interface ISqlDapper
{
///
/// var p = new object();
// p.Add("@a", 11);
//p.Add("@b", dbType: DbType.Int32, direction: ParameterDirection.Output);
//p.Add("@c", dbType: DbType.Int32, direction: ParameterDirection.ReturnValue);
// ///
IDbConnection Connection { get; }
///
///
///
///
///
List QueryList(string cmd, object param = null, CommandType? commandType = null, bool beginTransaction = false) where T : class;
Task> QueryListAsync(string cmd, object param = null, CommandType? commandType = null, bool beginTransaction = false, int? commandTimeout = null) where T : class;
T QueryFirst(string cmd, object param = null, CommandType? commandType = null, bool beginTransaction = false) where T : class;
Task QueryFirstAsync(string cmd, object param = null, CommandType? commandType = null, bool beginTransaction = false, int? commandTimeout = null) where T : class;
object ExecuteScalar(string cmd, object param = null, CommandType? commandType = null, bool beginTransaction = false);
Task