public List <RoleUI> GetRoleInfoByPage(int startPage, int pageSize, out int totalCount) { return(EntityMapping.Auto <List <Role>, List <RoleUI> >(RoleContext.GetRoleListByPage(startPage, pageSize, out totalCount))); }