Changed how database values are casted in.

This commit is contained in:
2018-04-22 01:35:57 +01:00
parent 21d678c185
commit cff905283a
24 changed files with 184 additions and 220 deletions

View File

@@ -309,11 +309,8 @@ namespace Cicm.Database
foreach(DataRow dataRow in dataTable.Rows)
{
InstructionSetExtension entry = new InstructionSetExtension
{
Id = int.Parse(dataRow["id"].ToString()),
Name = dataRow["extension"].ToString()
};
InstructionSetExtension entry =
new InstructionSetExtension {Id = (int)dataRow["id"], Name = (string)dataRow["extension"]};
entries.Add(entry);
}