16 lines
472 B
C#
16 lines
472 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
using xCommons.Extensions;
|
|
using xModels.Base;
|
|
using xIdentityModels.Models;
|
|
|
|
namespace xIdentityModels {
|
|
public class XApiToken : XBaseIntIDEntity {
|
|
public string Content { get; set; }
|
|
|
|
[NotMapped]
|
|
public XTokenResponse Tokens {
|
|
get { return Content.IsNullOrEmpty () ? null : Content.FromJSON<XTokenResponse> (); }
|
|
set { Content = value.ToJSON (); }
|
|
}
|
|
}
|
|
} |