mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-12 08:08:06 -05:00
Add libraries for EntityFramework
Stats plugin work Allow plugins to dynamically add EF classes to the context
This commit is contained in:
16
Plugins/SimpleStats/Models/EFServer.cs
Normal file
16
Plugins/SimpleStats/Models/EFServer.cs
Normal file
@ -0,0 +1,16 @@
|
||||
|
||||
using SharedLibrary.Database.Models;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace StatsPlugin.Models
|
||||
{
|
||||
public class EFServer : SharedEntity
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public int ServerId { get; set; }
|
||||
[Required]
|
||||
public int Port { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user