PIbd-21_Rodionov_I.A._IceCr.../IceCreamShop/IceCreamShopContracts/ViewModels/IceCreamViewModel.cs

24 lines
715 B
C#
Raw Normal View History

using IceCreamShopDataModels.Models;
using IceCreamShopContracts.Attributes;
namespace IceCreamShopContracts.ViewModels
{
public class IceCreamViewModel : IIceCreamModel
{
[Column(visible: false)]
public int Id { get; set; }
[Column(title: "Название мороженого", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
public string IceCreamName { get; set; } = string.Empty;
[Column(title: "Цена", width: 150)]
public double Price { get; set; }
[Column(visible: false)]
public Dictionary<int, (IComponentModel, int)> IceCreamComponents
{
get;
set;
} = new();
}
}