This commit is contained in:
2021-02-18 20:30:49 +00:00
parent 8786dd22df
commit bc0c255ee3
5 changed files with 74 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
using System;
using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
namespace AyaNova.Models
{
@@ -30,6 +30,9 @@ namespace AyaNova.Models
public long? PurchaseTaxCodeId { get; set; }
public string VendorPartNumber { get; set; }
//mirror name fields to save a roundtrip to the UI, not persisted
[NotMapped]
public string PartName { get; set; }
[JsonIgnore]
public PurchaseOrder PurchaseOrder { get; set; }