Пример #1
0
        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));
        }
Пример #2
0
        public static List <T> Query(string where = null, string orderBy = null)
        {
            string sql = MySqlDapper.GetSqlToQuery(tableInfo, where, orderBy);

            return(MySqlDapper.Query <T>(ConnectionString4Slave, sql));
        }