You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
508 B
25 lines
508 B
using System.Data.SqlClient;
|
|
|
|
namespace DealerSelection.Common.Data.Dapper;
|
|
|
|
public class RepositoryBaseDapperAsync : RepositoryBaseDIAsync
|
|
{
|
|
public RepositoryBaseDapperAsync(string cxnName) : base(cxnName)
|
|
{
|
|
|
|
}
|
|
|
|
protected async Task<SqlConnection> OpenCxnWithMappingAsync<T>()
|
|
{
|
|
Task<SqlConnection> cxnTask = OpenCxnAsync();
|
|
SetTypeMap<T>();
|
|
|
|
return await cxnTask;
|
|
}
|
|
|
|
protected void SetTypeMap<T>()
|
|
{
|
|
TypeMapHelper.SetTypeMap<T>();
|
|
}
|
|
|
|
}
|