Files
ersatztv/ErsatzTV.Infrastructure/Data/Configurations/ResolutionConfiguration.cs
T
Jason DoveandGitHub a9c93ff498 add custom resolution management (#1326)
* update some dependencies

* add custom resolution management
2023-06-25 09:14:19 -05:00

16 lines
443 B
C#

using ErsatzTV.Core.Domain;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace ErsatzTV.Infrastructure.Data.Configurations;
public class ResolutionConfiguration : IEntityTypeConfiguration<Resolution>
{
public void Configure(EntityTypeBuilder<Resolution> builder)
{
builder.ToTable("Resolution");
builder.Property(r => r.IsCustom).HasDefaultValue(false);
}
}