I have the default locode solution in place with a .net 6.0 target framework. I would like to add the AdminDatabaseFeature. When I add the plugin nothing will display on the admin-ui page, just 404 not found. How can I augment the solution so this works properly?
public class ConfigureDb : IHostingStartup
{
public void Configure(IWebHostBuilder builder) => builder
.ConfigureServices((context, services) => {
services.AddSingleton<IDbConnectionFactory>(new OrmLiteConnectionFactory(
context.Configuration.GetConnectionString("DefaultConnection")
?? "Server=server;Database=db;User Id=user;Password=pwd;MultipleActiveResultSets=True;",
SqlServer2012Dialect.Provider));
})
.ConfigureAppHost(appHost => {
// Enable built-in Database Admin UI at /admin-ui/database
appHost.Plugins.Add(new AdminDatabaseFeature());
});
}