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