Use license table in machine photos.

This commit is contained in:
2019-05-27 18:03:08 +01:00
parent 82956c6b77
commit 574176ee4c
7 changed files with 5452 additions and 8 deletions

View File

@@ -3750,7 +3750,7 @@ namespace Cicm.Database.Migrations
b.Property<string>("Lens");
b.Property<string>("License");
b.Property<int>("LicenseId");
b.Property<string>("LightSource");
@@ -3824,7 +3824,7 @@ namespace Cicm.Database.Migrations
b.HasIndex("Lens");
b.HasIndex("License");
b.HasIndex("LicenseId");
b.HasIndex("LightSource");
@@ -4566,6 +4566,9 @@ namespace Cicm.Database.Migrations
modelBuilder.Entity("Cicm.Database.Models.MachinePhoto", b =>
{
b.HasOne("Cicm.Database.Models.License", "License").WithMany("Photos").HasForeignKey("LicenseId")
.OnDelete(DeleteBehavior.Cascade);
b.HasOne("Cicm.Database.Models.Machine", "Machine").WithMany("Photos").HasForeignKey("MachineId")
.OnDelete(DeleteBehavior.Cascade);