0

This is not duplicate of earlier post as this is applicable only for older version of Table SDK. With Azure.Data.Tables, this solution does not work

I have a property in my entity that derives from ITableEntity which I do not want to persist as it is stored in the blob (due to storage size limitation)

I tried JsonIgnore, XmlIgnore but nothing works. I could not find any updated documentation from MS on same. Even creating custom serializer does not work.

Entity class:

public class AzTableEntity : ITableEntity
{
    public AzTableEntity()
    {

    }

    public AzTableEntity(int length, byte[] bytes, string fileName)
    {
        RawBytes = bytes;
        Length = length;
        FileName = fileName;
    }
    // Attribute to ignore as it would be stored in Blob 
    public byte[] RawBytes { get; set; }
    public int Length { get; set; }
    
    public string FileName { get; set; }

    public string PartitionKey { get; set; }
    public string RowKey { get; set; }
    public DateTimeOffset? Timestamp { get; set; }
    public ETag ETag { get; set; }
}
Ankit
  • 6,388
  • 8
  • 54
  • 79

0 Answers0