using System.Collections.Generic; using System.Linq; using CZFW.Framework.Interface; using CZFW.Framework.Model.Entity; namespace CZFW.Framework.Logic { public class SysConfigLogic : LogicBase, ISysConfig { public IList GetAllSysConfig() { return Queryable.ToList(); } public SysConfigEntity GetSysConfigById(int id) { return GetEntity(id); } public IList GetSysConfig(params string[] keyList) { return GetEntities(x => keyList.Contains(x.Key)); } public SysConfigEntity GetSysConfigByKey(string key) { return GetEntity(x => x.Key == key); } } }