using System.ComponentModel.DataAnnotations.Schema; using xCommons.Extensions; using xIdentityModels.Constants; using xIdentityModels.Navigations; using xModels.Base; namespace xIdentityModels.Models { public class XToken : XBaseIntIDEntity { public string Token { get; set; } public string Hash { get; set; } public string UserSelectByParam { get; set; } public string DeviceStr { get; set; } public XAction Type { get; set; } [NotMapped] public XDevice Device { get { return DeviceStr.FromJSON (); } set { DeviceStr = value.ToJSON (); } } } }