* replace media items tables with card grids * style cleanup * add basic paging * sort and page in the db * optimize sql for movies * support movie posters * resize movie posters and store in cache with channel logos * fix bug preventing folders with more than 50 chars as local media sources * support tv posters
22 lines
523 B
C#
22 lines
523 B
C#
using ErsatzTV.Core.Domain;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace ErsatzTV.Infrastructure.Data
|
|
{
|
|
public class LogContext : DbContext
|
|
{
|
|
public LogContext(DbContextOptions<LogContext> options)
|
|
: base(options)
|
|
{
|
|
}
|
|
|
|
public DbSet<LogEntry> LogEntries { get; set; }
|
|
|
|
protected override void OnModelCreating(ModelBuilder builder)
|
|
{
|
|
base.OnModelCreating(builder);
|
|
builder.Entity<LogEntry>().ToTable("Logs");
|
|
}
|
|
}
|
|
}
|