16 lines
476 B
C#
16 lines
476 B
C#
using AutomobilePlantContracts.Attributes;
|
|
using AutomobilePlantDataModels.Models;
|
|
|
|
namespace AutomobilePlantContracts.ViewModels
|
|
{
|
|
public class ComponentViewModel : IComponentModel
|
|
{
|
|
[Column(visible: false)]
|
|
public int Id { get; set; }
|
|
[Column("Component's name", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
public string ComponentName { get; set; } = string.Empty;
|
|
[Column("Cost", width: 100)]
|
|
public double Cost { get; set; }
|
|
}
|
|
}
|