AppAny.Quartz.EntityFrameworkCore.Migrations.PostgreSQL 0.1.4

EntityFrameworkCore PostgreSQL migrations for Quartz.NET

There is a newer version of this package available.
See the version list below for details.
Install-Package AppAny.Quartz.EntityFrameworkCore.Migrations.PostgreSQL -Version 0.1.4
dotnet add package AppAny.Quartz.EntityFrameworkCore.Migrations.PostgreSQL --version 0.1.4
<PackageReference Include="AppAny.Quartz.EntityFrameworkCore.Migrations.PostgreSQL" Version="0.1.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AppAny.Quartz.EntityFrameworkCore.Migrations.PostgreSQL --version 0.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AppAny.Quartz.EntityFrameworkCore.Migrations.PostgreSQL, 0.1.4"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install AppAny.Quartz.EntityFrameworkCore.Migrations.PostgreSQL as a Cake Addin
#addin nuget:?package=AppAny.Quartz.EntityFrameworkCore.Migrations.PostgreSQL&version=0.1.4

// Install AppAny.Quartz.EntityFrameworkCore.Migrations.PostgreSQL as a Cake Tool
#tool nuget:?package=AppAny.Quartz.EntityFrameworkCore.Migrations.PostgreSQL&version=0.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

EntityFrameworkCore migrations for Quartz.NET

Nuget
Integration Tests

This library handles schema migrations for Quartz.NET using EntityFrameworkCore migrations toolkit with one line of configuration

Supported drivers

Feel free to contribute another drivers support

Usage

# Configure DbContext
public class DatabaseContext : DbContext
{
  // ...

  protected override void OnModelCreating(ModelBuilder modelBuilder)
  {
    // Adds Quartz.NET PostgreSQL schema to EntityFrameworkCore
    modelBuilder.AddQuartz(builder => builder
      .UsePostgres()
      .UseSchema("quartz")
      .UseNoPrefix());
  }
}

# Configure Quartz.NET
storeOptions.UsePostgres(postgresOptions =>
{
  postgresOptions.UseDriverDelegate<PostgreSQLDelegate>();
  postgresOptions.ConnectionString = ...;
  postgresOptions.TablePrefix = ...;
});

Then add EntityFrameworkCore migration with Quartz.NET schema dotnet ef migrations add AddQuartz and:

  • Add in-process migration using databaseContext.Database.MigrateAsync()
  • Add out-of-process migration using dotnet ef database update
  • Extract SQL for your migration tool dotnet ef migrations script PreviousMigration AddQuartz

EntityFrameworkCore migrations for Quartz.NET

Nuget
Integration Tests

This library handles schema migrations for Quartz.NET using EntityFrameworkCore migrations toolkit with one line of configuration

Supported drivers

Feel free to contribute another drivers support

Usage

# Configure DbContext
public class DatabaseContext : DbContext
{
  // ...

  protected override void OnModelCreating(ModelBuilder modelBuilder)
  {
    // Adds Quartz.NET PostgreSQL schema to EntityFrameworkCore
    modelBuilder.AddQuartz(builder => builder
      .UsePostgres()
      .UseSchema("quartz")
      .UseNoPrefix());
  }
}

# Configure Quartz.NET
storeOptions.UsePostgres(postgresOptions =>
{
  postgresOptions.UseDriverDelegate<PostgreSQLDelegate>();
  postgresOptions.ConnectionString = ...;
  postgresOptions.TablePrefix = ...;
});

Then add EntityFrameworkCore migration with Quartz.NET schema dotnet ef migrations add AddQuartz and:

  • Add in-process migration using databaseContext.Database.MigrateAsync()
  • Add out-of-process migration using dotnet ef database update
  • Extract SQL for your migration tool dotnet ef migrations script PreviousMigration AddQuartz

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.1.13 308 4/29/2021
0.1.12 132 4/12/2021
0.1.11 47 4/12/2021
0.1.10 635 3/29/2021
0.1.8 381 2/26/2021
0.1.7 1,017 2/16/2021
0.1.6 79 2/16/2021
0.1.4 1,076 1/24/2021
0.1.3 130 1/23/2021
0.1.2 162 1/22/2021
0.1.1 284 1/22/2021
0.1.0 141 1/9/2021
Show less