using Newtonsoft.Json; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; using Tango.BL.Enumerations; namespace Tango.BL.Entities { public partial class Role : RoleBase { /// /// Initializes a new instance of the class. /// public Role() : base() { } [JsonIgnore] [NotMapped] public Roles RoleEnum { get { return (Roles)Code; } set { Code = (int)value; } } public override string ToString() { return Name; } } }