Exemplo n.º 1
0
 /// <summary>
 /// 根据AppId获取模块实体
 /// </summary>
 /// <returns></returns>
 public Entity.ModuleInfo getModuleInfo(string appid, Entity.ModuleType type)
 {
     return(this.dbContext.Module.FirstOrDefault(g => g.ModuleType == type && g.AppId.ToLower() == appid && g.Enabled == 1));
 }
Exemplo n.º 2
0
 /// <summary>
 /// 获取模块列表
 /// </summary>
 /// <returns></returns>
 public List <Entity.ModuleInfo> getModuleList(Entity.ModuleType type)
 {
     return(this.dbContext.Module.Where(g => g.ModuleType == type).ToList());
 }