azure-sdk-for-net icon indicating copy to clipboard operation
azure-sdk-for-net copied to clipboard

Collections; serialize when contained in an object to upload, deserialized when contained in a downloaded object.

Open bas-inh opened this issue 1 year ago • 2 comments
trafficstars

Library name

Azure.Data.Tables

Please describe the feature.

I have had a problem working with collections in Azure Table Storage in ASP.NET 6 for some time now. Please refer to this MS Learn post --> here

I'll explain it here as well: If it's not already a feature, I would like to suggest that collections get serialized and deserialized automatically when contained in an object. This would be most helpful, since Azure Table Storage does not support complex types, like collections.

It would work like this:

I have an object and want to upload to Table Storage. If this object contains any complex type --> BAM, serialized. This could be made customizable with an attribute to maybe change the default serialize syntax, say XML or JSON.

Then if I created a GET action to retrieve an object from Table Storage and it contains a serialized complex type --> BAM, deserialize it.

Thanks in advance and I wish you all a happy 2024!

bas-inh avatar Jan 02 '24 09:01 bas-inh

Thank you for your feedback. Tagging and routing to the team member best able to assist. Please expect and forgive delays during the US holiday season.

jsquire avatar Jan 02 '24 13:01 jsquire

The automatic, efficient serialization/deserialization of complex types is a core feature in MongoDB and most NoSQL offerings...

Falven avatar May 08 '24 13:05 Falven