This commit is contained in:
2020-03-24 22:51:36 +00:00
parent cd5d06a8a6
commit 942a43da6c
2 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;
namespace AyaNova.Models
{
// [JsonObject(IsReference = true)]
public partial class Translation
{
public long Id { get; set; }
public uint ConcurrencyToken { get; set; }
[Required]
public string Name { get; set; }
public bool? Stock { get; set; }
public bool CjkIndex { get; set; }
//TODO: Defaults for user options translation settings:
// short date, short time formats
// currency symbol
//digit grouping separator symbol
//decimal symbol
//Relationship
//was this but..
// public ICollection<TranslationItem> TranslationItems { get; set; }
//Not perhaps so useful here but this is a good way to lazy initialize collections which
//is more efficient when there are many child collections (workorder) and means no need to null check the collection
//https://stackoverflow.com/a/20773057/8939
private ICollection<TranslationItem> _translationItem;
public virtual ICollection<TranslationItem> TranslationItems
{
get
{
return this._translationItem ?? (this._translationItem = new HashSet<TranslationItem>());
}
}
}//eoc
}//eons