20 lines
476 B
C#
20 lines
476 B
C#
using GTANetworkAPI;
|
|
using reallife_gamemode.Server.Models;
|
|
using System.Linq;
|
|
|
|
namespace reallife_gamemode.Server.Util
|
|
{
|
|
class DatabaseHelper
|
|
{
|
|
public static void InitDatabaseFirstTime()
|
|
{
|
|
NAPI.Util.ConsoleOutput("Initializing database...");
|
|
using(var dbContext = new DatabaseContext())
|
|
{
|
|
dbContext.Users.FirstOrDefault();
|
|
dbContext.SaveChanges();
|
|
}
|
|
}
|
|
}
|
|
}
|