DB integration added, multiple images for equipment
This commit is contained in:
@@ -11,6 +11,7 @@ public class Inspection
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[JsonIgnore]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
[Required]
|
||||
@@ -20,10 +21,11 @@ public class Inspection
|
||||
[Required]
|
||||
public float PeriodValue { get; set; }
|
||||
|
||||
// Foreign keys
|
||||
[JsonIgnore]
|
||||
public int EquipmentId { get; set; }
|
||||
|
||||
// EF stuff
|
||||
// Navigation Properties
|
||||
[JsonIgnore]
|
||||
public Equipment? Equipment { get; } = new();
|
||||
}
|
||||
Reference in New Issue
Block a user