mirror of
https://github.com/TomasiDeveloping/PlayerManagement.git
synced 2026-04-16 09:12:20 +00:00
17 lines
549 B
C#
17 lines
549 B
C#
using Database.Entities;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
|
|
namespace Database.Configurations;
|
|
|
|
public class VsDuelConfiguration : IEntityTypeConfiguration<VsDuel>
|
|
{
|
|
public void Configure(EntityTypeBuilder<VsDuel> builder)
|
|
{
|
|
builder.HasKey(vsDuel => vsDuel.Id);
|
|
|
|
builder.Property(vsDuel => vsDuel.Year).IsRequired();
|
|
builder.Property(vsDuel => vsDuel.WeeklyPoints).IsRequired();
|
|
builder.Property(vsDuel => vsDuel.CalendarWeek).IsRequired();
|
|
}
|
|
} |