2023-02-26 01:50:38 +08:00

31 lines
792 B
C#

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
{
/// <summary>
/// 需要在Server中继承此类实现。
/// Milimoe.FunGame.Core.Service.SQLManager也是
/// </summary>
public abstract class SQLHelper : ISQLHelper
{
public string Script { get; set; } = "";
public EntityType EntityType { get; }
public object Entity { get; } = General.EntityInstance;
public SQLResult Result { get; }
public abstract SQLServerInfo ServerInfo { get; }
public int UpdateRows { get; }
public virtual SQLResult Execute()
{
return SQLResult.NotFound;
}
}
}