public async Task QueryAsync() { RequestContext context = new RequestContext { Scope = Scope, SqlId = "Query", Request = new { Taken = 10 } }; var users = await _sqlMapper.QueryAsync <T_Entity>(context); }
public static Task <IEnumerable <T> > QueryAsync <T>(this ISmartSqlMapper sqlMapper, string fullSqlId, dynamic @params, DataSourceChoice sourceChoice) { EnsurePoint(ref fullSqlId); return(sqlMapper.QueryAsync <T>(new RequestContext() { Scope = fullSqlId.Split('.')[0], SqlId = fullSqlId.Split('.')[1], Request = @params }, sourceChoice)); }
public Task <IEnumerable <T> > QueryAsync <T>(RequestContext context) { return(MapperInstance.QueryAsync <T>(context)); }
public Task <IEnumerable <T> > QueryAsync <T>(RequestContext context) { return(SqlMapper.QueryAsync <T>(context)); }