薛之猫大王
17 hours ago da45ccae4c4b03fa50308b442a04ccfd3de160e0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// GameApp.cs
// Create:
//      2019-10-29
// Description:
//      数据对象 接口
// Author:
//      薛林强 <545626463@qq.com>
//
// Copyright (c) 2026 虚幻骑士科技
 
using ILRuntime.Other;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
 
namespace Skyunion
{
    public interface ITable<T>
    {
        T QueryRecord(int id);
        List<T> QueryRecords();
    }
    public enum DataMode
    {
        Binary,
        SQLite,
        Excel,
    }
    public interface IDataService : IModule
    {
        DataMode GetDataMode();
        T QueryRecord<T>(int id);
        List<T> QueryRecords<T>();
        ITable<T> QueryTable<T>();
        // 下面是给ILRuntime使用的
        T QueryRecord<T>(int id, Type type);
        List<T> QueryRecords<T>(Type type);
        ITable<T> QueryTable<T>(Type type);
    }
}