Skip to content

Commit

Permalink
Fix #2064 - Take command name from the row key in the table (#2065)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbeaugrand authored May 12, 2023
1 parent 49e4e27 commit 9f893bd
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 9f893bd

Please sign in to comment.