Exemplo n.º 1
0
        public SystemConfig GetRedisServer(string conn)
        {
            SystemConfig config = new SystemConfig();
            string       sql    = "SELECT Id,ConfigKey,ConfigValue,Remark FROM SystemConfig WHERE ConfigKey='RedisServer'";
            DataTable    dt     = SqlServerHelper.Get(conn, sql);

            if (dt.Rows.Count > 0)
            {
                config = SystemConfig.CreateModel(dt.Rows[0]);
            }
            return(config);
        }