Refactored code

This commit is contained in:
2020-06-28 10:47:00 +01:00
parent ae69181119
commit 7c8ef0cc10
5 changed files with 27 additions and 21 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
public static class QueryBuilder
{
public static string GameByName(string name)
public static string GameEntryByName(string name)
{
return $"SELECT \"GameName\",*" +
$"FROM \"main\".\"GameEntry\"" +
@@ -8,7 +8,7 @@
$"LIKE \"%{name}%\"";
}
public static string GameById(string id)
public static string GameEntryByGameId(string id)
{
return $"SELECT \"GameName\",*" +
$"FROM \"main\".\"GameEntry\"" +
@@ -16,7 +16,7 @@
$"LIKE \"{id}\"";
}
public static string DirectoryById(string id)
public static string DirectoryByGameId(string id)
{
return $"SELECT \"Path\",*" +
$"FROM \"main\".\"Directories\"" +