Add GameVersion domain and login validation
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using RecNet.Domain.GameVersions;
|
||||
|
||||
namespace RecNet.Infrastructure.Persistence.Configurations;
|
||||
|
||||
public class GameVersionConfiguration : IEntityTypeConfiguration<GameVersion>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<GameVersion> builder)
|
||||
{
|
||||
builder.HasKey(x => x.Version);
|
||||
|
||||
builder.Property(x => x.Version)
|
||||
.HasMaxLength(32)
|
||||
.IsRequired();
|
||||
|
||||
builder.Property(x => x.IsValid)
|
||||
.IsRequired();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user