PIbd-23-Radaev-A.V.-GiftShop/GiftShop/GiftShopContracts/ViewModels/ComponentViewModel.cs

19 lines
513 B
C#
Raw Normal View History

2024-05-17 13:28:57 +04:00
using GiftShopContracts.Attributes;
using GiftShopDataModels.Models;
2024-02-06 12:37:25 +04:00
using System.ComponentModel;
namespace GiftShopContracts.ViewModels
{
public class ComponentViewModel : IComponentModel
{
2024-05-17 13:28:57 +04:00
[Column(visible: false)]
public int Id { get; set; }
2024-02-06 12:37:25 +04:00
2024-05-17 13:28:57 +04:00
[Column("Название компонента", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
public string ComponentName { get; set; } = string.Empty;
2024-02-06 12:37:25 +04:00
2024-05-17 13:28:57 +04:00
[Column("Цена", width: 80)]
public double Cost { get; set; }
2024-02-06 12:37:25 +04:00
}
}