IW4M-Admin/Data/Models/Server/EFServer.cs

23 lines
724 B
C#
Raw Permalink Normal View History

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Data.Abstractions;
namespace Data.Models.Server
{
public class EFServer : SharedEntity, IUniqueId
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.None)]
public long ServerId { get; set; }
[Required]
public int Port { get; set; }
public string EndPoint { get; set; }
public Reference.Game? GameName { get; set; }
public string HostName { get; set; }
public bool IsPasswordProtected { get; set; }
2023-05-07 15:18:59 -04:00
public string PerformanceBucket { get; set; }
public long Id => ServerId;
public string Value => EndPoint;
}
}