Skip to content
Snippets Groups Projects

New: MigrateSQL2Linked to GD

Closed Sirieam Marie Hunke requested to merge Issue/2915-migrateSql2Linked into dev
All threads resolved!
3 files
+ 26
22
Compare changes
  • Side-by-side
  • Inline

Files

@@ -19,17 +19,7 @@ public class ResourceTypeStructuralData
@@ -19,17 +19,7 @@ public class ResourceTypeStructuralData
_deployer = deployer;
_deployer = deployer;
}
}
public async IAsyncEnumerable<ResourceTypeInformationDto> GetAll()
public async IAsyncEnumerable<IGraph> ConvertToLinkedDataAsync(IAsyncEnumerable<ResourceTypeInformationDto> entries)
{
var resourceTypeApi = new ResourceTypeApi(apiClientConfig);
var resourceTypeInformationsResponse = await resourceTypeApi.GetAllResourceTypesInformationAsync();
foreach (var item in resourceTypeInformationsResponse.Data)
{
yield return item; // Yield each item in the list to keep the IAsyncEnumerable logic
}
}
public override async IAsyncEnumerable<IGraph> ConvertToLinkedDataAsync(IAsyncEnumerable<ResourceTypeInformationDto> entries)
{
{
await foreach (var entry in entries)
await foreach (var entry in entries)
{
{
Loading