23 lines
682 B
C#
23 lines
682 B
C#
using FlowerShopContracts.Attributes;
|
|
using FlowerShopDataModels.Models;
|
|
|
|
namespace FlowerShopContracts.ViewModels
|
|
{
|
|
public class FlowerViewModel : IFlowerModel
|
|
{
|
|
[Column(visible: false)]
|
|
public int Id { get; set; }
|
|
[Column(title: "Название изделия", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
public string FlowerName { get; set; } = string.Empty;
|
|
[Column(title: "Цена", width: 150)]
|
|
public double Price { get; set; }
|
|
[Column(visible: false)]
|
|
public Dictionary<int, (IComponentModel, int)> FlowerComponents
|
|
{
|
|
get;
|
|
set;
|
|
} = new();
|
|
|
|
}
|
|
}
|