Move enums to Data project.

This commit is contained in:
2025-11-14 16:31:35 +00:00
parent 5bffbc342e
commit 4a5708b910
67 changed files with 753 additions and 713 deletions

View File

@@ -27,6 +27,7 @@ using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using Marechai.Data;
using Marechai.Database.Schemas.Sql;
namespace Marechai.Database;
@@ -422,9 +423,7 @@ public partial class Operations
dataAdapter.Fill(dataSet);
foreach(DataRow dataRow in dataSet.Tables[0].Rows)
{
consoleIdAndCompanyId.Add(int.Parse(dataRow["id"].ToString()), int.Parse(dataRow["company"].ToString()));
}
trans = connection.BeginTransaction();
@@ -1200,7 +1199,7 @@ public partial class Operations
dbCmd.Transaction = trans;
dbCmd.CommandText = $"UPDATE `computers` SET `gpu` = {DbNone} WHERE `gpu` = 1;\n" +
"UPDATE `computers` SET `gpu` = NULL WHERE `gpu` = 2;\n" +
"UPDATE `computers` SET `gpu` = NULL WHERE `gpu` = 2;\n" +
$"UPDATE `computers` SET `gpu` = {DbSoftware} WHERE `gpu` = 3;";
dbCmd.ExecuteNonQuery();
@@ -1213,7 +1212,7 @@ public partial class Operations
dbCmd.Transaction = trans;
dbCmd.CommandText = $"UPDATE `consoles` SET `gpu` = {DbNone} WHERE `gpu` = 1;\n" +
"UPDATE `consoles` SET `gpu` = NULL WHERE `gpu` = 2;\n" +
"UPDATE `consoles` SET `gpu` = NULL WHERE `gpu` = 2;\n" +
$"UPDATE `consoles` SET `gpu` = {DbSoftware} WHERE `gpu` = 3;";
dbCmd.ExecuteNonQuery();