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 int user_id { get; set; } public int equip_unit { get; set; } public int rand_stats { get; set; } public int equipment_data_id { get; set; } } public class EquipmentrSQL : SQL { public override DbSet table { get; set; } public void Update(Equipment equipment) { table.Update(equipment); } public override List SelectUid(int user_id) { return table.Where(data => data.user_id == user_id).ToList(); } } }