Files
ersatztv/ErsatzTV.Infrastructure/Data/Configurations/FFmpegProfileConfiguration.cs
T
Jason DoveandGitHub c02b83d0d6 code cleanup (#743)
* update tools

* run code cleanup

* update dependencies
2022-04-19 17:47:18 -05:00

20 lines
565 B
C#

using ErsatzTV.Core.Domain;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace ErsatzTV.Infrastructure.Data.Configurations;
public class FFmpegProfileConfiguration : IEntityTypeConfiguration<FFmpegProfile>
{
public void Configure(EntityTypeBuilder<FFmpegProfile> builder)
{
builder.ToTable("FFmpegProfile");
builder.Property(p => p.NormalizeFramerate)
.HasDefaultValue(false);
builder.Property(p => p.DeinterlaceVideo)
.HasDefaultValue(true);
}
}