예제 #1
0
        public DBServerInfo GetDBServerInfo()
        {
            DBServerInfo       res  = new DBServerInfo();
            INFO_Server_Result info = db.INFO_Server().ToList()[0];

            res.Name = info.ServerName;
            try
            {
                res.Memory = info.Memory / 1024;
            }
            catch
            {
                res.Memory = 0;
            }
            res.Edition = info.Edition;
            res.Version = info.Version;
            return(res);
        }