Skip to content

Adding support for serialized properties #14

@eiriktsarpalis

Description

@eiriktsarpalis

Hi,

Let me start by saying that this is a great library, we are investigating on adopting it for the implementation of MBrace.Azure, to replace direct manipulation of the cumbersome TableEntity API.

I was wondering if it would be possible to add support for serialized properties. For instance

Config.serializer <- JsonSerializer() // specify some kind of serializer implementation to the global state

type Record =
    {  [<PartitionKey>] PartitionKey : string
       [<RowKey>] RowKey : string
       Name : string
       [<Serialized>] Data : (string * int) [] }

which would store the Data property using a json string, depending on the specified serializer implementation. Adding this feature comes with the obvious caveat that queries cannot incorporate such properties, but this is not necessarily a problem. Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions