Skip to content

Commit

Permalink
Fix #2064 - Take comamnd name from the row key in the table
Browse files Browse the repository at this point in the history
  • Loading branch information
kbeaugrand committed May 12, 2023
1 parent 49e4e27 commit 966b33d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public static async Task MigrateDeviceModelCommands(this PortalDbContext ctx, Co
_ = await set.AddAsync(new DeviceModelCommand
{
Id = item.RowKey,
Name = item.RowKey,
Frame = item[nameof(DeviceModelCommand.Frame)].ToString()!,
Port = int.Parse(item[nameof(DeviceModelCommand.Port)].ToString()!, CultureInfo.InvariantCulture),
IsBuiltin = bool.Parse(item[nameof(DeviceModelCommand.IsBuiltin)]?.ToString() ?? "false"),
Expand Down

0 comments on commit 966b33d

Please sign in to comment.