2023-05-15 21:17:32 +03:00

29 lines
775 B
C#

using AutomobilePlantDataModels.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using AutomobilePlantContracts.Attributes;
namespace AutomobilePlantContracts.ViewModel
{
public class CarViewModel : ICarModel
{
[Column(visible: false)]
public int Id { get; set; }
[Column(title: "Название", width: 150)]
public string CarName { get; set; } = string.Empty;
[Column(title: "Цена", width: 50)]
public double Price { get; set; }
[Column(visible: false)]
public Dictionary<int, (IComponentModel, int)> CarComponents
{
get;
set;
} = new();
}
}