using DapperORM;
using PushInfo.Core.IDAL;
using PushInfo.Core.Models.Tables;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DapperORM.Common.Models;
using System.Linq.Expressions;

namespace PushInfo.Core.DAL.MySql
{
    public class MappushUserRoleDAL : BaseRepository<Mappush_User_Role>, IMappushUserRoleDAL
    {
        public ResultModel<IEnumerable<Mappush_User_Role>> Fetch(Expression<Func<Mappush_User_Role, bool>> where = null, Expression<Func<Mappush_User_Role, object>> select = null, IDictionary<string, bool> sort = null)
        {
            return FetchAsync(where, select, sort).Result;
        }
    }
}
