public static DapperService <T> GetInstance()
 {
     if (_instance == null)
     {
         _instance = new DapperService <T>();
     }
     return(_instance);
 }
Exemple #2
0
        public List <roles> QueryAllRoles()
        {
            string sql = @"SELECT * FROM roles";

            return(DapperService <roles> .GetInstance().QueryList(sql, null));
        }