using LiteDB; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tango.BL.Entities { public partial class TangoVersion : TangoVersionBase { /// /// Initializes a new instance of the class. /// public TangoVersion() : base() { } [NotMapped] [JsonIgnore] [BsonIgnore] public String VersionAndTag { get { return Version + (Tag.IsNotNullOrEmpty() ? $" [{Tag}]" : String.Empty); } } protected override void OnTagChanged(string tag) { if (tag == String.Empty) { _tag = null; } base.OnTagChanged(tag); } } }