1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-29 00:20:24 -05:00

Moved from SQLITE to EntityFramework.

Lots of things are broken!
This commit is contained in:
RaidMax
2017-11-25 19:29:58 -06:00
parent c56d98d11c
commit 23eb641113
61 changed files with 1690 additions and 1685 deletions

View File

@ -10,7 +10,7 @@ using System.Data;
namespace StatsPlugin
{
public class ChatDatabase : Database
public class ChatDatabase : _Database
{
private string[] CommonWords = new string[] { "for",
"with",

View File

@ -67,7 +67,7 @@ namespace StatsPlugin.Chat
public HttpResponse GetPage(NameValueCollection querySet, IDictionary<string, string> headers)
{
int clientID = Convert.ToInt32(querySet["clientid"]);
var client = Stats.ManagerInstance.GetClientDatabase().GetPlayer(clientID);
var name = Stats.ManagerInstance.GetDatabase().GetClient(clientID).Name;
HttpResponse resp = new HttpResponse()
{
@ -78,7 +78,7 @@ namespace StatsPlugin.Chat
ServerID = c.ServerID,
Message = c.Message,
TimeSent = c.TimeSent,
ClientName = client.Name,
ClientName = name,
}),
additionalHeaders = new Dictionary<string, string>()
};