This commit is contained in:
2019-12-10 16:56:02 +00:00
parent 5ee83b7dd3
commit e5fc772089
2 changed files with 6 additions and 2 deletions

View File

@@ -7,7 +7,8 @@ using System.ComponentModel.DataAnnotations;
namespace AyaNova.Models
{
//Test class for development
//NOTE: Any non required field (nullable in DB) sb nullable here, i.e. decimal? not decimal, otherwise the server will call it an invalid record if the field isn't sent from client
//NOTE: In Widget DB schema only name and serial are not nullable
public partial class Widget
{
public long Id { get; set; }
@@ -22,7 +23,7 @@ namespace AyaNova.Models
public DateTime? StartDate { get; set; }
public DateTime? EndDate { get; set; }
public string Notes { get; set; }
public int Count { get; set; }
public int? Count { get; set; }
public string CustomFields { get; set; }
public List<string> Tags { get; set; }