19 lines
568 B
C#
19 lines
568 B
C#
using AutomobilePlantContracts.Attributes;
|
|
using AutomobilePlantDataModels.Models;
|
|
|
|
namespace AutomobilePlantContracts.ViewModels
|
|
{
|
|
public class CarViewModel : ICarModel
|
|
{
|
|
[Column(visible: false)]
|
|
public int Id { get; set; }
|
|
[Column("Car's name", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
public string CarName { get; set; } = string.Empty;
|
|
[Column("Price", width: 100)]
|
|
public double Price { get; set; }
|
|
[Column(visible: false)]
|
|
public Dictionary<int, (IComponentModel, int)> CarComponents { get; set; } = new();
|
|
}
|
|
|
|
}
|