Initial Commit ...
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using xCommons.Constants;
|
||||
using xModels.Base;
|
||||
|
||||
namespace xIdentityModels.Navigations {
|
||||
/// <summary>
|
||||
/// Represent a Client Device which used by User
|
||||
/// </summary>
|
||||
public class XDevice : XBaseIntIDEntity {
|
||||
/// <summary>
|
||||
/// Operating System
|
||||
/// </summary>
|
||||
/// <value>device operating system identifier</value>
|
||||
public string Os { get; set; }
|
||||
/// <summary>
|
||||
/// Operating System Version
|
||||
/// </summary>
|
||||
/// <value>which version of operatin system is in use</value>
|
||||
public string OsVersion { get; set; }
|
||||
/// <summary>
|
||||
/// Device Browser
|
||||
/// </summary>
|
||||
/// <value>the Browser identifier</value>
|
||||
public string Browser { get; set; }
|
||||
/// <summary>
|
||||
/// Browser Engine Agent
|
||||
/// </summary>
|
||||
/// <value>browser engine Agent</value>
|
||||
public string UserAgent { get; set; }
|
||||
/// <summary>
|
||||
/// Type of client Device
|
||||
/// </summary>
|
||||
/// <value>represent device type <see>XDeviceType</see></value>
|
||||
public XDeviceType DeviceType { get; set; }
|
||||
|
||||
//
|
||||
#region User ...
|
||||
/// <summary>
|
||||
/// UserId
|
||||
/// </summary>
|
||||
/// <value>Represent this Devie belong to which User Identifier</value>
|
||||
public string UserId { get; set; }
|
||||
/// <summary>
|
||||
/// User
|
||||
/// </summary>
|
||||
/// <value>Represent Device User <see>XUser</see></value>
|
||||
[ForeignKey (nameof (UserId))]
|
||||
public virtual XUser User { get; set; }
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user