23 lines
564 B
C#
23 lines
564 B
C#
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<XDevice> ();
|
|
}
|
|
set {
|
|
DeviceStr = value.ToJSON ();
|
|
}
|
|
}
|
|
}
|
|
} |