|
|
|
@ -1,15 +1,17 @@
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Volo.Abp.Data;
|
|
|
|
|
using Volo.Abp.EntityFrameworkCore;
|
|
|
|
|
using Volo.Abp.MultiTenancy;
|
|
|
|
|
|
|
|
|
|
namespace Volo.Abp.BackgroundJobs.EntityFrameworkCore
|
|
|
|
|
{
|
|
|
|
|
[IgnoreMultiTenancy]
|
|
|
|
|
[ConnectionStringName(BackgroundJobsDbProperties.ConnectionStringName)]
|
|
|
|
|
public class BackgroundJobsDbContext : AbpDbContext<BackgroundJobsDbContext>, IBackgroundJobsDbContext
|
|
|
|
|
{
|
|
|
|
|
public DbSet<BackgroundJobRecord> BackgroundJobs { get; set; }
|
|
|
|
|
|
|
|
|
|
public BackgroundJobsDbContext(DbContextOptions<BackgroundJobsDbContext> options)
|
|
|
|
|
public BackgroundJobsDbContext(DbContextOptions<BackgroundJobsDbContext> options)
|
|
|
|
|
: base(options)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
@ -22,4 +24,4 @@ namespace Volo.Abp.BackgroundJobs.EntityFrameworkCore
|
|
|
|
|
builder.ConfigureBackgroundJobs();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|