изменил datamodels
This commit is contained in:
parent
f59b9f11c7
commit
12ba48c7d8
@ -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();
|
||||
}
|
||||
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user