Skip to content

Instantly share code, notes, and snippets.

@gistlyn
Created June 21, 2021 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gistlyn/68896ace022821bc12285c44da7a8e86 to your computer and use it in GitHub Desktop.
Save gistlyn/68896ace022821bc12285c44da7a8e86 to your computer and use it in GitHub Desktop.
autoquery
dotnet add package ServiceStack.Server
using ServiceStack;
namespace MyApp
{
public class ConfigureAutoQuery : IConfigureAppHost
{
public void Configure(IAppHost appHost)
{
appHost.Plugins.Add(new AutoQueryFeature {
MaxLimit = 1000,
//IncludeTotal = true,
});
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment