Fixed crash on AppVersion after the removal of Version key in the EnviromentVariables dictionary. Added new SqlDatabase functions: ReadDataArrayAsync and ReadDataAsync with query + parameters of the query.

This commit is contained in:
2024-06-18 17:54:20 +03:00
parent 1881102fb7
commit 86b951f50f
4 changed files with 66 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
using System;
using System.Reflection;
namespace DiscordBotCore.Interfaces.Updater
{
@@ -12,7 +13,7 @@ namespace DiscordBotCore.Interfaces.Updater
public int PatchVersion { get; set; }
public static readonly AppVersion CurrentAppVersion = new AppVersion(Application.CurrentApplication.ApplicationEnvironmentVariables["Version"]);
public static readonly AppVersion CurrentAppVersion = new AppVersion(Assembly.GetEntryAssembly().GetName().Version.ToString());
private readonly char _Separator = '.';