thewar_server/Server/SQL/Equipment.cs

28 lines
728 B
C#

using Microsoft.EntityFrameworkCore;
using Npgsql.EntityFrameworkCore.PostgreSQL;
using SkiaSharp;
using System.ComponentModel.DataAnnotations.Schema;
using static System.Runtime.InteropServices.JavaScript.JSType;
namespace Server.SQL
{
[Table("equipment", Schema = "gamedb")]
public class Equipment
{
public int id { get; set; }
public string user_id { get; set; }
public string equip_unit { get; set; }
public string rand_stats { get; set; }
}
public class EquipmentrSQL : SQL<Equipment>
{
public override DbSet<Equipment> table { get; set; }
public void Update(Equipment equipment)
{
table.Update(equipment);
}
}
}