Your
submodels
list is empty, so your
result
list will also be empty, and there will be no records to load.
You need a list of the IDs of the records you want to load, which you then pass to the
BulkRead
method.
You also shouldn't use
await Task.Run(...)
, especially when there is an async method available.
var recordsToLoad = new List<int> { 1, 2, 42 };
var result = recordsToLoad.Select(id => new VehicleSubModel { Id = id }).ToList();
var bulkConfig = new BulkConfig { UpdateByProperties = new List<string> { nameof(VehicleSubModel.Id) } };
await Context.BulkReadAsync(result, bulkConfig);