mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-04-23 04:29:36 +08:00
45 lines
1.1 KiB
C#
45 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Milimoe.FunGame.Core.Interface.Base;
|
|
using Milimoe.FunGame.Core.Library.Common.Network;
|
|
using Milimoe.FunGame.Core.Library.Constant;
|
|
|
|
namespace Milimoe.FunGame.Core.Api.Data
|
|
{
|
|
public class SQLHelper : ISQLHelper
|
|
{
|
|
public string Script { get; set; } = "";
|
|
|
|
public EntityType EntityType { get; private set; } = EntityType.Empty;
|
|
|
|
public object Entity { get; private set; } = General.EntityInstance;
|
|
|
|
public SQLResult Result { get; private set; } = SQLResult.Success;
|
|
|
|
public SQLServerInfo ServerInfo { get; private set; } = new SQLServerInfo();
|
|
|
|
public int UpdateRows { get; private set; } = 0;
|
|
|
|
public SQLHelper Instance { get; private set; } = new SQLHelper();
|
|
|
|
public static SQLHelper GetHelper(EntityType type)
|
|
{
|
|
return new SQLHelper(type);
|
|
}
|
|
|
|
private SQLHelper(EntityType type)
|
|
{
|
|
this.EntityType = type;
|
|
}
|
|
|
|
private SQLHelper()
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|