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

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