Refactored code
This commit is contained in:
@@ -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\"" +
|
||||
|
||||
Reference in New Issue
Block a user