ArkaliaCore.Game.Database.Tables.AccountInformationsTable.Insert C# (CSharp) Method

Insert() public static method

public static Insert ( Models account ) : void
account Models
return void
        public static void Insert(Models.AccountInformationsModel account)
        {
            lock (DatabaseManager.Locker)
            {
                try
                {
                    var query = "'" + account.ID + "','" + account.AccountId + "','" + account.Username + "','" + account.FriendsGuid + "'";
                    DatabaseManager.Provider.ExecuteQuery("INSERT INTO accounts_data (" + Collums + ") VALUES (" + query + ")");
                    Guid.Update(account.ID);
                }
                catch (Exception e)
                {
                    Utilities.Logger.Error("Can't execute query : " + e.ToString());
                }
            }
        }
AccountInformationsTable