This repository has been archived on 2025-05-14. You can view files and clone it, but cannot push or open issues or pull requests.

21 lines
486 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
using Oqtane.Databases.Interfaces;
namespace Oqtane.Migrations
{
public abstract class MultiDatabaseMigration : Migration
{
protected MultiDatabaseMigration(IDatabase database)
{
ActiveDatabase = database;
}
protected IDatabase ActiveDatabase { get; }
protected string RewriteName(string name)
{
return ActiveDatabase.RewriteName(name);
}
}
}