21 lines
637 B
C#
21 lines
637 B
C#
using SushiBarDataModels.Models;
|
|
using System.ComponentModel;
|
|
using SushiBarContracts.Attributes;
|
|
|
|
namespace SushiBarContracts.ViewModels
|
|
{
|
|
public class SushiViewModel : ISushiModel
|
|
{
|
|
[Column(visible:false)]
|
|
public int Id { get; set; }
|
|
|
|
[Column("Name of Product", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
public string SushiName { get; set; } = string.Empty;
|
|
|
|
[Column("Cost", width:100)]
|
|
public double Price { get; set; }
|
|
[Column(visible:false)]
|
|
public Dictionary<int, (IComponentModel, int)> SushiComponents { get; set; } = new();
|
|
}
|
|
}
|