Beispiel #1
0
        public List <SystemConfigInfo> GetDataSelectDistinctOrderClass()
        {
            List <SystemConfigInfo> infos  = new List <SystemConfigInfo>();
            IDataReader             reader = db.GetDataSelectDistinctOrderClass().CreateDataReader();

            while (reader.Read())
            {
                infos.Add(SystemConfigInfo.Populate(reader));
            }
            return(infos);
        }
Beispiel #2
0
        public SystemConfigInfo getAll(int id)
        {
            SystemConfigInfo info   = new SystemConfigInfo();
            IDataReader      reader = db.GetDataById(id).CreateDataReader();

            while (reader.Read())
            {
                info = SystemConfigInfo.Populate(reader);
            }
            return(info);
        }
Beispiel #3
0
        public List <SystemConfigInfo> getAll()
        {
            List <SystemConfigInfo> infos  = new List <SystemConfigInfo>();
            IDataReader             reader = db.GetData().CreateDataReader();

            while (reader.Read())
            {
                infos.Add(SystemConfigInfo.Populate(reader));
            }
            return(infos);
        }
Beispiel #4
0
        public static string getDataByClassWithName(string className, string name)
        {
            SystemConfigTableAdapter db = new SystemConfigTableAdapter();
            string           result     = "";
            IDataReader      reader     = db.GetDataByClassWithName(className, name).CreateDataReader();
            SystemConfigInfo info       = new SystemConfigInfo();

            while (reader.Read())
            {
                info = SystemConfigInfo.Populate(reader);
            }
            if (info.sc_Id != 0)
            {
                result = info.sc_Value;
            }
            return(result);
        }