Exemplo n.º 1
0
 protected async Task <int> ExecuteCommandAsync(string sql, DapperRequest request)
 {
     return(await this.connection.ExecuteAsync(sql, DynamicParametersFactory.CreateParameters(request?.Properties)));
 }
Exemplo n.º 2
0
 protected int ExecuteCommand(string sql, DapperRequest request)
 {
     return(this.connection.Execute(sql, DynamicParametersFactory.CreateParameters(request?.Properties)));
 }
Exemplo n.º 3
0
 protected IEnumerable <T> Query(string sql, DapperRequest request)
 {
     return(this.connection.Query <T>(sql, DynamicParametersFactory.CreateParameters(request?.Properties)));
 }
Exemplo n.º 4
0
 protected async Task <IEnumerable <T> > QueryAsync(string sql, DapperRequest request)
 {
     return(await this.connection.QueryAsync <T>(sql, DynamicParametersFactory.CreateParameters(request?.Properties)));
 }
Exemplo n.º 5
0
 protected T QuerySingle(string sql, DapperRequest request)
 {
     return(this.connection.QuerySingle <T>(sql, DynamicParametersFactory.CreateParameters(request.Properties)));
 }