예제 #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));
        }