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); }
public SystemConfigInfo getAll(int id) { SystemConfigInfo info = new SystemConfigInfo(); IDataReader reader = db.GetDataById(id).CreateDataReader(); while (reader.Read()) { info = SystemConfigInfo.Populate(reader); } return(info); }
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); }
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); }