2021-03-22 11:09:25 -05:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2018-02-06 23:19:06 -06:00
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2021-03-22 11:09:25 -05:00
|
|
|
|
using Data.Abstractions;
|
2018-02-06 23:19:06 -06:00
|
|
|
|
|
2021-03-22 11:09:25 -05:00
|
|
|
|
namespace Data.Models.Server
|
2018-02-06 23:19:06 -06:00
|
|
|
|
{
|
2021-03-22 11:09:25 -05:00
|
|
|
|
public class EFServer : SharedEntity, IUniqueId
|
2018-02-06 23:19:06 -06:00
|
|
|
|
{
|
|
|
|
|
[Key]
|
|
|
|
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
2018-11-27 18:31:48 -06:00
|
|
|
|
public long ServerId { get; set; }
|
2018-02-06 23:19:06 -06:00
|
|
|
|
[Required]
|
|
|
|
|
public int Port { get; set; }
|
2018-11-27 18:31:48 -06:00
|
|
|
|
public string EndPoint { get; set; }
|
2021-03-22 11:09:25 -05:00
|
|
|
|
public Reference.Game? GameName { get; set; }
|
2020-05-22 20:29:41 -05:00
|
|
|
|
public string HostName { get; set; }
|
2020-08-20 10:38:11 -05:00
|
|
|
|
public bool IsPasswordProtected { get; set; }
|
2023-05-07 14:18:59 -05:00
|
|
|
|
public string PerformanceBucket { get; set; }
|
2021-03-22 11:09:25 -05:00
|
|
|
|
public long Id => ServerId;
|
|
|
|
|
public string Value => EndPoint;
|
2018-02-06 23:19:06 -06:00
|
|
|
|
}
|
|
|
|
|
}
|