question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support custom serialization for table entities

See original GitHub issue

Summary

Currently table entity serialization is not customizable and relies on reflection for custom entity types. We’d like to integrate with ObjectSerializer to provide a standard and customizable serialization story for entities.

Tables serialization will require customization to accommodate OData annotations and transformation to/from the expected wire format of Dictionary<string, object>.

Scope of Work

Investigate and implement an approach to serialization that incorporates ObjectSerializer and removes the need for reflection over custom entity type properties.

References

https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/src/Serialization/ObjectSerializer.cs https://docs.microsoft.com/en-us/dotnet/standard/serialization/system-text-json-converters-how-to

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
longtimedevelopercommented, Jan 28, 2022

@christothes I was just testing after re-reading this thread. Thank you!! Apologies for randomizing you.

1reaction
christothescommented, Jan 28, 2022

Hi @longtimedeveloper - I’m not aware of any plans to add support for the [IgnoreProperty] attribute. As mentioned earlier in this issue, we do support [IgnoreDataMember].

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to make TableEntity serialize non-public properties?
Effective custom azure table storage entity serialization? 2 · TableServiceContext won't serialize ValueObjects · 1 · Windows Azure: Serializing ...
Read more >
Jackson - Custom Serializer
This quick tutorial will show how to serialize a Java entity with Jackson 2 using a Custom Serializer. If you want to dig...
Read more >
Custom serialization and deserialization contracts
Learn how to write your own contract resolution logic to customize the JSON contract for a type.
Read more >
Micronaut Serialization
Micronaut Serialization is a library that allows the serialization and deserialization of objects to common serialization formats like JSON.
Read more >
Referencing complex data using Room
You support custom types by providing type converters, which are methods that tell Room how to convert custom types to and from known...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found