I am following the tutorial for Locode here https://www.youtube.com/watch?v=hkuO_DMFXmc&t=3s
When I run the project, I get
After Adding the DbFactory in Configure.AutoQuery.cs like
using ServiceStack;
using ServiceStack.OrmLite;
[assembly: HostingStartup(typeof(TestLocode.ConfigureAutoQuery))]
namespace TestLocode;
public class ConfigureAutoQuery : IHostingStartup
{
public void Configure(IWebHostBuilder builder) => builder
.ConfigureServices((context,services) => {
var dbFactory = new OrmLiteConnectionFactory(
context.Configuration.GetConnectionString("DefaultConnection")
?? "northwind.sqlite",
SqliteDialect.Provider);
services.AddPlugin(new AutoQueryFeature {
MaxLimit = 1000,
GenerateCrudServices = new GenerateCrudServices()
{
AutoRegister = true,
DbFactory = dbFactory,
}
//IncludeTotal = true,
});
});
}
Once this is set up, I don’t get any of the Northwind tables back, but only the App Uer and User Auth Role Tables.