//-----------------------------------------------------------------------
// <copyright file=" sys_user_hospital.cs">
// * FileName: sys_user_hospital.cs
// * history : Created by T4 2019-03-04 14:41:21 
// </copyright>
//-----------------------------------------------------------------------
using Performance.EntityModels;
using System;
using System.Collections.Generic;
using System.Linq;

namespace Performance.Repository
{
    /// <summary>
    /// sys_user_hospital Repository
    /// </summary>
    public partial class PerforUserhospitalRepository : PerforRepository<sys_user_hospital>
    {
        public List<sys_user_hospital> GetUserHospital(int userid)
        {
            string sql = "select * from sys_user_hospital where userid=@userid";
            return DapperQuery(sql, new { userid }).ToList();
        }
    }
}
