36 lines
771 B
C#
36 lines
771 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using Server.System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
|
|
namespace Server.SQL
|
|
{
|
|
public class EquipmentData
|
|
{
|
|
public long index { get; set; }
|
|
public int part { get; set; }
|
|
}
|
|
|
|
public class EquipmentDataSQL
|
|
{
|
|
private Dictionary<long, EquipmentData> equipmentData;
|
|
|
|
public string sheetName = "equipment";
|
|
|
|
public EquipmentData getEquipmentData(long key)
|
|
{
|
|
return equipmentData[key];
|
|
}
|
|
|
|
public List<EquipmentData> getEquipmentData()
|
|
{
|
|
return equipmentData.Values.ToList();
|
|
}
|
|
public void init()
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|