Esempio n. 1
0
 /// <summary>
 /// 获取所有的菜单
 /// </summary>
 /// <returns></returns>
 public List <sys_menu> GetMenuByRoleID()
 {
     return((List <sys_menu>)_Sys_MenuRepositoryS.FindListByClause(p => p.Menu_IsShow == 1, "Menu_Num asc"));
 }
Esempio n. 2
0
 /// <summary>
 /// 根据条件查询数据
 /// </summary>
 /// <param name="predicate">条件表达式树</param>
 /// <param name="orderBy">排序</param>
 /// <returns>泛型实体集合</returns>
 public IEnumerable <sys_menu> FindListByClause(Expression <Func <sys_menu, bool> > predicate, string orderBy)
 {
     return(_Sys_MenuRepositoryS.FindListByClause(predicate, orderBy));
 }