NativoPlusStudio.DapperExtension by NativoPlusStudio.DapperExtension

<PackageReference Include="NativoPlusStudio.DapperExtension" Version="1.0.0" />

 BaseDapperRepository

public abstract class BaseDapperRepository
protected readonly ILogger _logger

public BaseDapperRepository(string connectionString, ILogger logger = null)

protected int Execute(string sql, object parameters = null, IDbTransaction transaction = null)

protected int ExecuteStoredProcedure(string storedProcedureName, object obj = null)

protected List<T> ExecuteStoredProcedure<T>(string storedProcedureName, object obj = null, int? commandTimeout = default)

protected List<T> Query<T>(string sql, object parameters = null, CommandType? commandType = default, int commandTimeout = 400)

protected T QueryFirstOrDefault<T>(string sql, object parameters = null, CommandType? commandType = default)