mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Changed how database values are casted in.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user