Skip to content

Commit

Permalink
HasSentinel changes: needed because without it Inkball:SignalR tests …
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaosEngine committed Jan 12, 2024
1 parent 44337b6 commit ba422c3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/InkBall.Module/Model/GamesContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down Expand Up @@ -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<InkBallPoint.StatusEnum, int>());
.HasConversion(new EnumToNumberConverter<InkBallPoint.StatusEnum, int>())
.HasSentinel(Module.Model.InkBallPoint.StatusEnum.POINT_FREE);

entity.HasOne(d => d.EnclosingPath)
.WithMany(p => p.InkBallPoint)
Expand Down

0 comments on commit ba422c3

Please sign in to comment.