I am trying to get the stored data from the Azure table. However, when I am trying to parse the stored id from type Guid, I will get an empty Guid 00000000-0000-0000-0000-000000000000.
public async Task<List<T>> GetItemsAsync<T>() where T : class, ITableEntity
{
return await _skuTableClient.QueryAsync<T>().ToListAsync().ConfigureAwait(false);
}
This is my function to retrieve the data. T is in my case SkuInfoDto:
public class SkuInfoDto : ISkuInfo, ITableEntity
{
public Guid Id { get; set; }
public string Name { get; set; }
public string Supplier { get; set; }
public LicenseType Type { get; set; }
public Guid EntraIdGroupId { get; set; }
public string PartitionKey { get; set; }
public string RowKey { get; set; }
public DateTimeOffset? Timestamp { get; set; } = DateTimeOffset.UtcNow;
public ETag ETag { get; set; } = ETag.All;
}
EDIT:
Some comments said it already correct to change the type of the Id from Guid to string and parse it in the Code. The problem is that the Id is saved as a Guid in the Azure table and I can't change that, because the Azure table has a different owner.
