using iWareSql.Orm; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using iWareSql.DBModel; namespace iWareSql.DataAccess { public class BasicDataSetHandler { /// /// 获取 调度系统启动相关 /// /// /// public static Base_BasicDataSet GetCCSystem(DbModel edm) { return edm.Base_BasicDataSet.Where(x => x.BasicDataType == "1").FirstOrDefault(); } /// /// 获取 管理员密码 /// /// /// public static String GetMangerPassWord() { using (DbModel edm = new DbModel()) { return Convert.ToString(edm.Base_BasicDataSet.Where(x => x.BasicDataType == "2").Select(x => x.BasicDataValue).FirstOrDefault()); } } /// /// 获取 管理员密码对象 /// /// /// public static Base_BasicDataSet GetMangerPassWordObject(DbModel edm) { return edm.Base_BasicDataSet.Where(x => x.BasicDataType == "2").FirstOrDefault(); } } }