Files
hjha-server/ObjectModel/Game/DataFirstModel.cs
xiaoou e9616125ce feat: initial commit - HJHA game server full source
6 major server modules (PdkFriendServer/GlobalSever/ServerCore/GameModule/GameNetModule) +
game logic (GameFix/GameDAL/ServerData) +
network layer (NetWorkMessage) +
data layer (ObjectModel) +
utilities (MrWu/Core/Config/CloudAPI/dll) +
adapters (zyxAdapter/base)

.NET 8.0 C# solution, 16 projects, 958 source files
2026-07-07 12:02:15 +08:00

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;
namespace ObjectModel.Game
{
/// <summary>
/// 冠军
/// </summary>
public class DataFirstModel
{
/// <summary>
/// 玩家Id
/// </summary>
public int UserId;
/// <summary>
/// 获得冠军时间
/// </summary>
public DateTime CreateTime;
public DataFirstModel() { }
public DataFirstModel(DataRow row) {
this.UserId = (int)row["UserId"];
this.CreateTime = (DateTime)row["CreateTime"];
}
/// <summary>
/// 获取保存日赛冠军Sql
/// </summary>
/// <param name="userid"></param>
/// <returns></returns>
public static string GetInsertSql(int userid,int moduleId,int matchId) {
return $"INSERT INTO[DataFirst]([UserId], [moduleId], [matchId]) VALUES({userid}, {moduleId}, {matchId});";
//return $"INSERT INTO [DataFirst]([UserId]) VALUES ({userid});";
}
}
}