19 lines
568 B
C#
Raw Normal View History

2024-05-16 00:34:01 +04:00
using AutomobilePlantContracts.Attributes;
using AutomobilePlantDataModels.Models;
2024-02-11 16:43:19 +04:00
namespace AutomobilePlantContracts.ViewModels
{
public class CarViewModel : ICarModel
{
2024-05-16 00:34:01 +04:00
[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();
}
2024-02-11 16:43:19 +04:00
}