Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dei79 authored Sep 11, 2022
1 parent d610c7d commit 67478eb
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,22 @@ public class VArrayModel
}
```

## Virtual Dictionary Attributes
When storing dictionaries in Azure Table store there are two options. The first option is to store it as a JSON payload and the second option is to expand the dictionary with his items to separate properties in Azure Table Store with the following code:

```csharp
[Storable(Tablename: "VDictionaryModels")]
public class VDictionaryModel
{
[PartitionKey]
[RowKey]
public string UUID { get; set; }

[VirtualDictionary(PropertyPrefix: "DE")]
public Dictionary<string, int> DataElements { get; set; } = new Dictionary<string, int>();
}
```

## Store as JSON Object Attribute
The store as JSON attribute allows to store refenrenced objects as json payload for a specific property

Expand Down

0 comments on commit 67478eb

Please sign in to comment.