using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using xCommons.Extensions; using xIdentityModels.Navigations; using xModels.Base; namespace xIdentityModels.Models { public class XVerificationRequest : XBaseIntIDEntity { [Required] public string VerificationCode { get; set; } public int NumberOfTries { get; set; } public DateTime LastTryOn { get; set; } [NotMapped] public XActionRequestToken Request { get { return RequestStr.FromJSON (); } set { RequestStr = value.ToJSON (); } } public string RequestStr { get; set; } [NotMapped] public XDevice Device { get { return DeviceStr.FromJSON (); } set { DeviceStr = value.ToJSON (); } } public string DeviceStr { get; set; } } }