Configure AutoGen AutoCrud Services
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dotnet add package ServiceStack.Server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using ServiceStack; | |
namespace MyApp | |
{ | |
public class ConfigureAutoQuery : IConfigureAppHost | |
{ | |
public void Configure(IAppHost appHost) | |
{ | |
appHost.Plugins.Add(new AutoQueryFeature { | |
MaxLimit = 1000, | |
IncludeTotal = true, | |
GenerateCrudServices = new GenerateCrudServices { | |
AutoRegister = true, | |
//AddDataContractAttributes = false, | |
} | |
}); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment