Last active
June 2, 2021 06:12
-
-
Save Layoric/afdbf2f8dbc6dbad40ab20756569cfbb to your computer and use it in GitHub Desktop.
Register AutoQuery Plugin
This file contains hidden or 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
// Connect your database | |
container.AddSingleton<IDbConnectionFactory>(c => | |
new OrmLiteConnectionFactory(MapProjectPath("~/northwind.sqlite"), SqliteDialect.Provider)); | |
// Configure AutoQuery to Generate CRUD services | |
Plugins.Add(new AutoQueryFeature { | |
MaxLimit = 1000, | |
GenerateCrudServices = new GenerateCrudServices { | |
AutoRegister = true | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment