using System; using System.ComponentModel.DataAnnotations.Schema; using xCommons.Extensions; using xIdentityModels.Navigations; using xModels.Base; namespace xIdentityModels.Models { public class XBannedDevice : XBaseIntIDEntity { public DateTime BannedOn { get; set; } public string DeviceStr { get; set; } [NotMapped] public XDevice Device { get { return DeviceStr.FromJSON (); } set { DeviceStr = value.ToJSON (); } } } }