Hangfire.EntityFrameworkCore
Описание
An Entity Framework Core provider-neutral job storage implementation for Hangfire (https://www.hangfire.io).
Языки
- C#100%
Hangfire.EntityFrameworkCore
Overview
An Entity Framework Core provider-neutral job storage implementation for Hangfire developed by Sergey Odinokov.
Installation
To install Hangfire Entity Framework Core Storage, run the following command in the Nuget Package Manager Console:
PM> Install-Package Hangfire.EntityFrameworkCore
ASP.NET
After installation, update your existing OWIN Startup with the following lines of code:
ASP.NET Core
There is an example to use Hangfire.EntityFrameworkCore with ASP.NET Core.
Migrations
Currently, automatic migrations are not implemented. The migrations support planned and will be implemented on future releases.
Using your own DbContext
As of the version you have the ability to attach the tables required for this library to your own DbContext. Since the tables are attached to your own DbContext this means that the migrations are also attached to this DbContext and managed by the regular migration flow.
There is an example of this configuration found here, however the important sections are listed below.
In :
And then in the method of the DbContext class:
Queue providers
There is only built-in SQL-based internal queue provider supported. Additional providers support will be implemented in future.
License
Hangfire.EntityFrameworkCore licensed under the MIT License.