Browse Source

Обновлена база данных в приложении

lyudmila.archackowa 8 months ago
parent
commit
9b437ff5e9
1 changed files with 0 additions and 2 deletions
  1. 0 2
      AvaloniaApplicationBase/Models/CatBaseContext.cs

+ 0 - 2
AvaloniaApplicationBase/Models/CatBaseContext.cs

@@ -74,12 +74,10 @@ public partial class CatBaseContext : DbContext
 
 
             entity.HasOne(d => d.IdCatNavigation).WithMany(p => p.TraitCatTables)
             entity.HasOne(d => d.IdCatNavigation).WithMany(p => p.TraitCatTables)
                 .HasForeignKey(d => d.IdCat)
                 .HasForeignKey(d => d.IdCat)
-                .OnDelete(DeleteBehavior.ClientSetNull)
                 .HasConstraintName("trait_cat_table_fk");
                 .HasConstraintName("trait_cat_table_fk");
 
 
             entity.HasOne(d => d.IdTraitNavigation).WithMany(p => p.TraitCatTables)
             entity.HasOne(d => d.IdTraitNavigation).WithMany(p => p.TraitCatTables)
                 .HasForeignKey(d => d.IdTrait)
                 .HasForeignKey(d => d.IdTrait)
-                .OnDelete(DeleteBehavior.ClientSetNull)
                 .HasConstraintName("trait_cat_table_fk_1");
                 .HasConstraintName("trait_cat_table_fk_1");
         });
         });