﻿
using System.Linq;
using Microsoft.EntityFrameworkCore;

namespace Test.Data
{
    public class DerivedDbContext : BaseDbContext
    {
        public DerivedDbContext(DbContextOptions<DerivedDbContext> options)
            : base(new DbContextOptions<BaseDbContext>(options.Extensions.ToDictionary(x => x.GetType(), x => x)))
        {
        }

        public DerivedDbContext(DbContextOptions<BaseDbContext> options)
            : base(options)
        {
        }
    }
}
