mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2024-11-23 19:42:51 +01:00
15 lines
462 B
C#
15 lines
462 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using Phantom.Server.Database.Entities;
|
|
|
|
namespace Phantom.Server.Database.Factories;
|
|
|
|
public sealed class InstanceEntityUpsert : AbstractUpsertHelper<InstanceEntity> {
|
|
internal InstanceEntityUpsert(ApplicationDbContext ctx) : base(ctx) {}
|
|
|
|
private protected override DbSet<InstanceEntity> Set => Ctx.Instances;
|
|
|
|
private protected override InstanceEntity Construct(Guid guid) {
|
|
return new InstanceEntity(guid);
|
|
}
|
|
}
|