Removed duplicate GsmDbStruct entries
This commit is contained in:
+20
-20
@@ -90,11 +90,11 @@ namespace DevConsole
|
||||
string r = Console.ReadLine();
|
||||
Console.Write("\n");
|
||||
|
||||
PrintGameEntries(gsmRO.LoadRecords<GameEntryModel>(GsmStruct.GameEntries.GameName,
|
||||
GsmStruct.Tables.GameEntry,
|
||||
GsmStruct.GameEntries.GameID,
|
||||
r,
|
||||
true));
|
||||
PrintGameEntries(gsmRO.LoadRecords<GameEntryModel>( GsmDbStruct.Columns.GameName,
|
||||
GsmDbStruct.Tables.GameEntry,
|
||||
GsmDbStruct.Columns.ID,
|
||||
r,
|
||||
true));
|
||||
}
|
||||
|
||||
private static void OptionC()
|
||||
@@ -103,11 +103,11 @@ namespace DevConsole
|
||||
string r = Console.ReadLine();
|
||||
Console.Write("\n");
|
||||
|
||||
PrintDirectories(gsmRO.LoadRecords<DirectoriesModel>("*",
|
||||
GsmStruct.Tables.Directories,
|
||||
GsmStruct.DirectoryColumns.GameID,
|
||||
r,
|
||||
true));
|
||||
PrintDirectories(gsmRO.LoadRecords<DirectoriesModel>( "*",
|
||||
GsmDbStruct.Tables.Directories,
|
||||
GsmDbStruct.Columns.GameID,
|
||||
r,
|
||||
true));
|
||||
}
|
||||
|
||||
private static void OptionD()
|
||||
@@ -116,11 +116,11 @@ namespace DevConsole
|
||||
string r = Console.ReadLine();
|
||||
Console.Write("\n");
|
||||
|
||||
PrintGameEntries(gsmRO.LoadRecords<GameEntryModel>(GsmStruct.GameEntries.GameName,
|
||||
GsmStruct.Tables.GameEntry,
|
||||
GsmStruct.GameEntries.GameName,
|
||||
r,
|
||||
false));
|
||||
PrintGameEntries(gsmRO.LoadRecords<GameEntryModel>( GsmDbStruct.Columns.GameName,
|
||||
GsmDbStruct.Tables.GameEntry,
|
||||
GsmDbStruct.Columns.GameName,
|
||||
r,
|
||||
false));
|
||||
}
|
||||
|
||||
private static void OptionE()
|
||||
@@ -149,11 +149,11 @@ namespace DevConsole
|
||||
private static void OptionF()
|
||||
{
|
||||
//Guid guid = Guid.NewGuid();
|
||||
List<DirectoriesModel> dm = gsmRO.LoadRecords<DirectoriesModel>("*",
|
||||
GsmStruct.Tables.Directories,
|
||||
GsmStruct.DirectoryColumns.GameID,
|
||||
"600",
|
||||
true);
|
||||
List<DirectoriesModel> dm = gsmRO.LoadRecords< DirectoriesModel>("*",
|
||||
GsmDbStruct.Tables.Directories,
|
||||
GsmDbStruct.Columns.GameID,
|
||||
"600",
|
||||
true);
|
||||
foreach (var entry in dm)
|
||||
{
|
||||
//entry.Path = guid.ToString();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace Gsm
|
||||
{
|
||||
public struct GsmStruct
|
||||
public struct GsmDbStruct
|
||||
{
|
||||
public static class Tables
|
||||
{
|
||||
@@ -9,20 +9,11 @@
|
||||
public static string RegistryList { get { return "RegistryList"; } }
|
||||
}
|
||||
|
||||
public static class DirectoryColumns
|
||||
public static class Columns
|
||||
{
|
||||
public static string ID { get { return "id"; } }
|
||||
public static string GameID { get { return "GameID"; } }
|
||||
}
|
||||
|
||||
public static class GameEntries
|
||||
{
|
||||
public static string GameID { get { return "id"; } }
|
||||
public static string GameName { get { return "GameName"; } }
|
||||
}
|
||||
|
||||
public static class RegistryColumns
|
||||
{
|
||||
public static string GameID { get { return "GameID"; } }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user