24 lines
715 B
C#
24 lines
715 B
C#
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();
|
|
}
|
|
} |