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"),