Skip to content

Entity Framework Core Integration

TickerQ.EntityFrameworkCore provides persistence support for TickerQ jobs, allowing you to store job state, execution history, and manage jobs through your database.

Sections

Installation

Install the TickerQ.EntityFrameworkCore package and database providers.

Setup

Configure Entity Framework Core integration. Choose between built-in TickerQDbContext, application DbContext, or custom entities.

Migrations

Create and manage database migrations for TickerQ entities.

Database Operations

Query, update, and manage TickerQ jobs through Entity Framework Core.

Performance

DbContext pooling, indexes, transactions, and performance optimization.

Best Practices

Recommended practices for production deployments.

Quick Setup

csharp
using TickerQ.EntityFrameworkCore.DbContextFactory;

builder.Services.AddTickerQ(options =>
{
    options.AddOperationalStore(efOptions =>
    {
        efOptions.UseTickerQDbContext<TickerQDbContext>(optionsBuilder =>
        {
            optionsBuilder.UseNpgsql(connectionString);
        });
    });
});

See Also

Built by Albert Kunushevci