Skip to content

Commit d09778e

Browse files
committed
2 parents e0a3b6b + 12a556d commit d09778e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,3 +241,19 @@ Azure Table Storage entities always have a timestamp. If your POCO has a field
241241
Modifications to the Timestamp property do not get persisited. This is exactly how it works with the Azure Table Storage SDK.
242242

243243
Considerations for taking a similar approach to ETag are being considered.
244+
245+
#### Custom Json Serialization
246+
New to v3, you can now customize how complex fields get serialized to json.
247+
248+
Example (Assume you have a custom json serializer named `KeysJsonConverter`):
249+
```csharp
250+
var jsonSerializerSettings = new JsonSerializerSettings
251+
{
252+
Converters = new List<JsonConverter>{new KeysJsonConverter(typeof(Department))}
253+
};
254+
255+
var tableStore = new PocoTableStore<Employee, int, int>("TestEmployee", "UseDevelopmentStorage=true",
256+
e => e.CompanyId,
257+
e => e.Id,
258+
new PocoTableStoreOptions(jsonSerializerSettings));
259+
```

0 commit comments

Comments
 (0)