изменил datamodels

This commit is contained in:
goldfest 2024-05-27 19:30:54 +04:00
parent f59b9f11c7
commit 12ba48c7d8
4 changed files with 8 additions and 10 deletions

View File

@ -11,11 +11,10 @@ namespace CarCenterDataBaseImplement.Models
public class CompletionsCar
{
public int Id { get; set; }
public int CompletionsId { get; set; }
public int CarId { get; set; }
[Required]
public int Count { get; set; }
public int CompletionsId { get; set; }
[Required]
public int CarId { get; set; }
public virtual Completions Completion { get; set; } = new();
public virtual CarSales Car { get; set; } = new();
}

View File

@ -11,6 +11,7 @@ namespace CarCenterDataModels.Models
string CarBrand { get; }
string CarModel { get; }
decimal CarCost { get; }
int AdministratorId { get; }
DateTime DateCreate { get; }
// int AdministratorId { get; }
}
}

View File

@ -11,8 +11,7 @@ namespace CarCenterDataModels.Models
string InspectionName { get; }
decimal InspectionCost { get; }
DateTime? InspectionDate { get; }
int AdministratorId { get; }
int EmployeeId { get; }
public Dictionary<int, ICarSalesModel> InspectionCars { get; }
//int AdministratorId { get; }
int? EmployeeId { get; }
}
}

View File

@ -11,7 +11,6 @@ namespace CarCenterDataModels.Models
string СompletionName { get; }
string СompletionFeatures { get; }
decimal СompletionPrice { get; }
int AdministratorId { get; }
public Dictionary<int, ICarSalesModel> СompletionCars { get; }
// int AdministratorId { get; }
}
}