I need to dynamic to generate the URL with URL route, because I need to handle the root or subfolder deployment issue, so I want to generate url like below:
UrlHelper url = new UrlHelper(HttpContext.Current.Request.RequestContext);
var menuUrl= url.RouteUrl(new { Controller = "Home", Action = "Index" });
new MenuItemDefinition(
"Home",
new FixedLocalizableString("Home"),
url: menuUrl,
icon: "fa fa-home",
UserRole.JOURNALIST
)
but it's can't get the HttpContext.Current.Request.RequestContext in NavigationProvider class, so any ideas?
Thanks!
ok, I see, thank you!!
I am using the default ICacheManager, so should be use MemoryCache, but how can I set the expire time for it? and what's the default expire time?
thanks!
Oh, sorry, I didn't read that careful :(
thank you!!
Not only for ABP framework, but I just want to know is possable to make a entity for a table view in code first? or are there any ways can do that in ABP ?
thanks!!