IViewLocationExpander IServiceProvider , context.ActionContext.HttpContext.ApplicationServices.GetService( typeof( myDbContext ) ), DbContext.
public class MyViewLocationExpander : IViewLocationExpander
{
public void PopulateValues( ViewLocationExpanderContext context )
{
var dbContext = context.ActionContext.HttpContext.ApplicationServices.GetService<ApplicationDbContext>();
}
public IEnumerable<string> ExpandViewLocations( ViewLocationExpanderContext context, IEnumerable<string> viewLocations )
{
var dbContext = context.ActionContext.HttpContext.ApplicationServices.GetService<ApplicationDbContext>();
return viewLocations;
}
}
, PopulateValues ββ , ,