1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2024-10-17 12:42:51 +02:00
Minecraft-Phantom-Panel/Server/Phantom.Server.Database/Factories/AgentEntityUpsert.cs

15 lines
442 B
C#

using Microsoft.EntityFrameworkCore;
using Phantom.Server.Database.Entities;
namespace Phantom.Server.Database.Factories;
public sealed class AgentEntityUpsert : AbstractUpsertHelper<AgentEntity> {
internal AgentEntityUpsert(ApplicationDbContext ctx) : base(ctx) {}
private protected override DbSet<AgentEntity> Set => Ctx.Agents;
private protected override AgentEntity Construct(Guid guid) {
return new AgentEntity(guid);
}
}