fix: Resolve EF Core shadow property issue and increase migration timeout

This commit is contained in:
Richard
2026-07-05 14:22:16 +02:00
parent e9e9ce0d5a
commit c81e5638b5
6 changed files with 968 additions and 3 deletions
@@ -148,7 +148,7 @@ public class AppDbContext : DbContext
mb.Entity<TraderCategoryPerformance>(e =>
{
e.HasKey(tcp => tcp.Id);
e.HasOne(tcp => tcp.Trader).WithMany().HasForeignKey(tcp => tcp.TraderId).OnDelete(DeleteBehavior.Cascade);
e.HasOne(tcp => tcp.Trader).WithMany(t => t.CategoryPerformances).HasForeignKey(tcp => tcp.TraderId).OnDelete(DeleteBehavior.Cascade);
e.Property(tcp => tcp.Category).HasConversion<string>().HasMaxLength(64);
e.Property(tcp => tcp.TotalVolume).HasPrecision(18, 4);
e.Property(tcp => tcp.TotalPnL).HasPrecision(18, 4);