-
Notifications
You must be signed in to change notification settings - Fork 8
Startup Configuration
Furkan Güngör edited this page Dec 22, 2021
·
3 revisions
Initalize Startup
configuration.
services.AddIronHook(options =>
{
options.UseNpgsql(Configuration.GetConnectionString("Default"), opts => opts.UseIronHookNpgsqlMigrations());
});
after
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
app.MigrateIronHook();
// ...
}
Initalize Program
configuration.
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddIronHook(opts =>
{
opts.UseNpgsql(
builder.Configuration.GetConnectionString("Default"),
opts =>opts.UseIronHookNpgsqlMigrations()
);
});
var app = builder.Build();
app.MigrateIronHook();
Now you can start hook operations.
Welcome to the Iron Hook wiki!
Topics:
-
Getting Started
-
Providers
-
Quick Implementation
-
Customization
-
Other