mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-06-10 14:55:34 -04:00
try fix sonarr
This commit is contained in:
@@ -58,6 +58,15 @@ public class DataContext : DbContext
|
||||
entity.ComplexProperty(e => e.ContentBlocker);
|
||||
});
|
||||
|
||||
// Configure ArrConfig -> ArrInstance relationship
|
||||
modelBuilder.Entity<ArrConfig>(entity =>
|
||||
{
|
||||
entity.HasMany(a => a.Instances)
|
||||
.WithOne(i => i.ArrConfig)
|
||||
.HasForeignKey(i => i.ArrConfigId)
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
});
|
||||
|
||||
foreach (var entityType in modelBuilder.Model.GetEntityTypes())
|
||||
{
|
||||
var enumProperties = entityType.ClrType.GetProperties()
|
||||
|
||||
Reference in New Issue
Block a user