public async Task ExecuteAsync() { RequestContext context = new RequestContext { Scope = Scope, SqlId = "Delete", Request = new { Id = 3 } }; int exeNum = await _sqlMapper.ExecuteAsync(context); }
public static Task <int> ExecuteAsync(this ISmartSqlMapper sqlMapper, string fullSqlId, dynamic @params) { EnsurePoint(ref fullSqlId); return(sqlMapper.ExecuteAsync(new RequestContext() { Scope = fullSqlId.Split('.')[0], SqlId = fullSqlId.Split('.')[1], Request = @params })); }
public Task <int> ExecuteAsync(RequestContext context) { return(MapperInstance.ExecuteAsync(context)); }
public Task <int> ExecuteAsync(RequestContext context) { return(SqlMapper.ExecuteAsync(context)); }