1
0
mirror of synced 2025-01-19 00:04:05 +01:00

Suppress Sentinel warnings

This commit is contained in:
asesidaa 2023-10-21 14:36:23 +08:00
parent 718eb7b881
commit c6ee1a6afe

View File

@ -24,7 +24,7 @@ public partial class TaikoDbContext
.OnDelete(DeleteBehavior.Cascade);
entity.Property(e => e.ClearState).HasConversion<uint>().HasDefaultValue(DanClearState.NotClear);
entity.Property(e => e.DanType).HasConversion<int>().HasDefaultValue(DanType.Normal);
entity.Property(e => e.DanType).HasConversion<int>().HasDefaultValue(DanType.Normal).HasSentinel(0);
});
modelBuilder.Entity<DanStageScoreDatum>(entity =>
@ -35,7 +35,7 @@ public partial class TaikoDbContext
.WithMany(p => p.DanStageScoreData)
.HasForeignKey(d => new { d.Baid, d.DanId, d.DanType })
.OnDelete(DeleteBehavior.Cascade);
entity.Property(e => e.DanType).HasConversion<int>().HasDefaultValue(DanType.Normal);
entity.Property(e => e.DanType).HasConversion<int>().HasDefaultValue(DanType.Normal).HasSentinel(0);
});
modelBuilder.Entity<AiScoreDatum>(entity =>