Skip to content

Commit

Permalink
Specify one-to-many to prevent unneeded foreign key generation
Browse files Browse the repository at this point in the history
  • Loading branch information
sven-n committed Aug 5, 2024
1 parent 654c167 commit 5d94acf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ public static void Apply(this EntityTypeBuilder<MonsterDefinition> builder)
public static void Apply(this EntityTypeBuilder<MonsterSpawnArea> builder)
{
builder.HasOne(spawn => spawn.RawMonsterDefinition);
builder.HasOne(spawn => spawn.RawGameMap);
builder.HasOne(spawn => spawn.RawGameMap).WithMany(map => map.RawMonsterSpawns);
}
}

0 comments on commit 5d94acf

Please sign in to comment.