diff --git a/HappySearchObjectClasses/Database/StaffItem.cs b/HappySearchObjectClasses/Database/StaffItem.cs index 4e463b2..368a5a8 100644 --- a/HappySearchObjectClasses/Database/StaffItem.cs +++ b/HappySearchObjectClasses/Database/StaffItem.cs @@ -8,7 +8,6 @@ namespace Happy_Apps_Core.Database; public class StaffItem : DumpItem, IDataItem { public int ID { get; set; } - public int AliasID { get; set; } public string Gender { get; set; } public string Language { get; set; } public string Description { get; set; } @@ -19,12 +18,11 @@ public class StaffItem : DumpItem, IDataItem public DbCommand UpsertCommand(DbConnection connection, bool insertOnly) { string sql = $"INSERT {(insertOnly ? string.Empty : "OR REPLACE ")}INTO {nameof(StaffItem)}s " + - "(ID,AID,Gender,Lang,Desc) VALUES " + - "(@ID,@AID,@Gender,@Lang,@Desc)"; + "(ID,Gender,Lang,Desc) VALUES " + + "(@ID,@Gender,@Lang,@Desc)"; var command = connection.CreateCommand(); command.CommandText = sql; command.AddParameter("@ID", ID); - command.AddParameter("@AID", AliasID); command.AddParameter("@Gender", Gender); command.AddParameter("@Lang", Language); command.AddParameter("@Desc", Description); @@ -36,7 +34,6 @@ public void LoadFromReader(IDataRecord reader) try { ID = Convert.ToInt32(reader["ID"]); - AliasID = Convert.ToInt32(reader["AID"]); Gender = Convert.ToString(reader["Gender"]); Language = Convert.ToString(reader["Lang"]); Description = Convert.ToString(reader["Desc"]); @@ -51,7 +48,6 @@ public void LoadFromReader(IDataRecord reader) public override void LoadFromStringParts(string[] parts) { ID = GetInteger(parts, "id", 1); - AliasID = GetInteger(parts, "aid"); Gender = GetPart(parts, "gender"); Language = GetPart(parts, "lang"); Description = GetPart(parts, "description");