From 9f893bdf800a5f064fcd3fc8a0a91dcf8326815a Mon Sep 17 00:00:00 2001 From: Kevin BEAUGRAND <9513635+kbeaugrand@users.noreply.github.com> Date: Fri, 12 May 2023 11:25:54 +0200 Subject: [PATCH] Fix #2064 - Take command name from the row key in the table (#2065) --- .../Seeds/DeviceModelCommandSeeder.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/AzureIoTHub.Portal.Infrastructure/Seeds/DeviceModelCommandSeeder.cs b/src/AzureIoTHub.Portal.Infrastructure/Seeds/DeviceModelCommandSeeder.cs index c3535277f..1e314390a 100644 --- a/src/AzureIoTHub.Portal.Infrastructure/Seeds/DeviceModelCommandSeeder.cs +++ b/src/AzureIoTHub.Portal.Infrastructure/Seeds/DeviceModelCommandSeeder.cs @@ -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"),