mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
remove unused interface
This commit is contained in:
parent
64298070ef
commit
14f19ea147
4 changed files with 8 additions and 19 deletions
|
|
@ -1,12 +0,0 @@
|
|||
using FilterLists.Data.Entities;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace FilterLists.Data.Contexts
|
||||
{
|
||||
public interface IFilterListsDbContext
|
||||
{
|
||||
DbSet<FilterList> FilterLists { get; set; }
|
||||
DbSet<Maintainer> Maintainers { get; set; }
|
||||
DbSet<Language> Languages { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -2,9 +2,9 @@
|
|||
using FilterLists.Data.EntityTypeConfigurations;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace FilterLists.Data.Contexts
|
||||
namespace FilterLists.Data
|
||||
{
|
||||
public class FilterListsDbContext : DbContext, IFilterListsDbContext
|
||||
public class FilterListsDbContext : DbContext
|
||||
{
|
||||
public FilterListsDbContext(DbContextOptions options)
|
||||
: base(options)
|
||||
|
|
@ -19,11 +19,13 @@ public FilterListsDbContext(DbContextOptions options)
|
|||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.ApplyConfiguration(new FilterListTypeConfiguration());
|
||||
modelBuilder.ApplyConfiguration(new FilterListLanguageTypeConfiguration());
|
||||
modelBuilder.ApplyConfiguration(new FilterListSoftwareTypeConfiguration());
|
||||
modelBuilder.ApplyConfiguration(new MaintainerTypeConfiguration());
|
||||
modelBuilder.ApplyConfiguration(new LanguageTypeConfiguration());
|
||||
modelBuilder.ApplyConfiguration(new SoftwareTypeConfiguration());
|
||||
|
||||
modelBuilder.ApplyConfiguration(new FilterListLanguageTypeConfiguration());
|
||||
modelBuilder.ApplyConfiguration(new FilterListSoftwareTypeConfiguration());
|
||||
|
||||
base.OnModelCreating(modelBuilder);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,6 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using FilterLists.Data.Contexts;
|
||||
using FilterLists.Data.Entities;
|
||||
using FilterLists.Data.Repositories.Contracts;
|
||||
|
||||
|
|
@ -8,7 +7,7 @@ namespace FilterLists.Data.Repositories.Implementations
|
|||
{
|
||||
public class FilterListRepository : IFilterListRepository
|
||||
{
|
||||
private readonly IFilterListsDbContext filterListsDbContext;
|
||||
private readonly FilterListsDbContext filterListsDbContext;
|
||||
|
||||
public FilterListRepository(FilterListsDbContext filterListsDbContext)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
using FilterLists.Data.Contexts;
|
||||
using FilterLists.Data;
|
||||
using FilterLists.Data.Repositories.Contracts;
|
||||
using FilterLists.Data.Repositories.Implementations;
|
||||
using FilterLists.Services.Contracts;
|
||||
|
|
|
|||
Loading…
Reference in a new issue