use dapper in a few places (#29)
* use dapper in a few places * use single dapper queries
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using ErsatzTV.Core.AggregateModels;
|
||||
using ErsatzTV.Core.Domain;
|
||||
using ErsatzTV.Core.Domain;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
@@ -34,11 +33,6 @@ namespace ErsatzTV.Infrastructure.Data
|
||||
public DbSet<TelevisionShowMetadata> TelevisionShowMetadata { get; set; }
|
||||
public DbSet<TelevisionSeason> TelevisionSeasons { get; set; }
|
||||
|
||||
// support raw sql queries
|
||||
public DbSet<MediaCollectionSummary> MediaCollectionSummaries { get; set; }
|
||||
public DbSet<GenericIntegerId> GenericIntegerIds { get; set; }
|
||||
public DbSet<MediaItemSummary> MediaItemSummaries { get; set; }
|
||||
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) =>
|
||||
optionsBuilder.UseLoggerFactory(_loggerFactory);
|
||||
|
||||
@@ -46,10 +40,6 @@ namespace ErsatzTV.Infrastructure.Data
|
||||
{
|
||||
base.OnModelCreating(builder);
|
||||
|
||||
builder.Ignore<MediaCollectionSummary>();
|
||||
builder.Ignore<GenericIntegerId>();
|
||||
builder.Ignore<MediaItemSummary>();
|
||||
|
||||
builder.ApplyConfigurationsFromAssembly(typeof(TvContext).Assembly);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user