diff --git a/src/InkBall.Module/Model/GamesContext.cs b/src/InkBall.Module/Model/GamesContext.cs index 8544d18b..45d2e329 100644 --- a/src/InkBall.Module/Model/GamesContext.cs +++ b/src/InkBall.Module/Model/GamesContext.cs @@ -166,7 +166,8 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) entity.Property(e => e.bIsPlayer1Active) .HasColumnName("bIsPlayer1Active") - .HasDefaultValue(true); + .HasDefaultValue(true) + .HasSentinel(false); entity.Property(e => e.CreateTime).HasColumnType("datetime"); @@ -360,7 +361,8 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) entity.Property(e => e.Status) .HasDefaultValue(Module.Model.InkBallPoint.StatusEnum.POINT_FREE) - .HasConversion(new EnumToNumberConverter()); + .HasConversion(new EnumToNumberConverter()) + .HasSentinel(Module.Model.InkBallPoint.StatusEnum.POINT_FREE); entity.HasOne(d => d.EnclosingPath) .WithMany(p => p.InkBallPoint)