Entity Framework Layer
Installation
Install-Package Deveel.Webhooks.EntityFrameworkdotnet add package Deveel.Webhooks.EntityFrameworkConfiguration
public void ConfigureServices(IServiceCollection services) {
// ...
services.AddWebhookSubscriptions(webhook => {
webhook.UseEntityFramework(ef => {
ef.UseContext(options => {
options.UseSqlServer(Configuration.GetConnectionString("Webhooks"));
});
});
});
// ...
}Pre-defined Database Context
Last updated