mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 07:13:58 -05:00
update map names for IW4 (issue #48)
only check shared GUID for IW4 optimized get privileged clients query fine-tuned the version printout to include revision numbers
This commit is contained in:
@ -507,6 +507,14 @@ namespace SharedLibraryCore
|
||||
return response.FirstOrDefault(r => r[0] == '\\')?.DictionaryFromKeyValue();
|
||||
}
|
||||
|
||||
public static double GetVersionAsDouble()
|
||||
{
|
||||
string version = Assembly.GetCallingAssembly().GetName().Version.ToString();
|
||||
version = version.Replace(".", "");
|
||||
return double.Parse(version) / 1000.0;
|
||||
}
|
||||
|
||||
public static string GetVersionAsString() => Assembly.GetCallingAssembly().GetName().Version.ToString();
|
||||
|
||||
#if DEBUG == true
|
||||
|
||||
@ -530,7 +538,7 @@ namespace SharedLibraryCore
|
||||
var queryCompilationContext = databaseDependencies.QueryCompilationContextFactory.Create(false);
|
||||
var modelVisitor = (RelationalQueryModelVisitor)queryCompilationContext.CreateQueryModelVisitor();
|
||||
modelVisitor.CreateQueryExecutor<TEntity>(queryModel);
|
||||
var sql = modelVisitor.Queries.First().ToString();
|
||||
var sql = modelVisitor.Queries.First().ToString().Replace("\"", "`");
|
||||
|
||||
return sql;
|
||||
}
|
||||
|
Reference in New Issue
Block a user