From 0a68dbfa4d624ef606f336358792586f351bd78b Mon Sep 17 00:00:00 2001 From: Salikh Date: Sat, 23 Mar 2024 09:45:21 +0400 Subject: [PATCH] secondCommit --- .../Migrations/20240322111242_InitMigration.cs | 2 +- MotorPlant/MotorPlantDatabaseImplement/Models/Component.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MotorPlant/MotorPlantDatabaseImplement/Migrations/20240322111242_InitMigration.cs b/MotorPlant/MotorPlantDatabaseImplement/Migrations/20240322111242_InitMigration.cs index 943e89f..dd0a6da 100644 --- a/MotorPlant/MotorPlantDatabaseImplement/Migrations/20240322111242_InitMigration.cs +++ b/MotorPlant/MotorPlantDatabaseImplement/Migrations/20240322111242_InitMigration.cs @@ -1,4 +1,4 @@ -using System; + using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable diff --git a/MotorPlant/MotorPlantDatabaseImplement/Models/Component.cs b/MotorPlant/MotorPlantDatabaseImplement/Models/Component.cs index d2b422a..223ccc7 100644 --- a/MotorPlant/MotorPlantDatabaseImplement/Models/Component.cs +++ b/MotorPlant/MotorPlantDatabaseImplement/Models/Component.cs @@ -14,7 +14,7 @@ namespace MotorPlantDatabaseImplement.Models [Required] public double Cost { get; set; } [ForeignKey("ComponentId")] - public virtual List DressComponents { get; set; } = new(); + public virtual List EngineComponents { get; set; } = new(); public static Component? Create(ComponentBindingModel model) { if (model == null)