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

22 lines
609 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 GiftViewModel : IGiftModel
{
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 GiftName { get; set; } = string.Empty;
2024-02-06 12:37:25 +04:00
2024-05-17 13:28:57 +04:00
[Column("Цена", width: 100)]
public double Price { get; set; }
2024-02-06 12:37:25 +04:00
2024-05-17 13:28:57 +04:00
[Column(visible: false)]
public Dictionary<int, (IComponentModel, int)> GiftComponents { get; set; } = new();
2024-02-06 12:37:25 +04:00
}
}