public static async Task <List <T> > QueryAsync(string where = null, string orderBy = null) { string sql = MySqlDapper.GetSqlToQuery(tableInfo, where, orderBy); return(await MySqlDapper.QueryAsync <T>(ConnectionString4Slave, sql)); }
public static List <T> Query(string where = null, string orderBy = null) { string sql = MySqlDapper.GetSqlToQuery(tableInfo, where, orderBy); return(MySqlDapper.Query <T>(ConnectionString4Slave, sql)); }