Created
January 7, 2022 16:11
-
-
Save DannyRusnok/35cc4820c2c23843068f299f2df53476 to your computer and use it in GitHub Desktop.
Value Objects Article
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
modelBuilder.Entity<Person>() | |
.Property(e => e.Address) | |
.HasConversion( | |
v => JsonSerializer.Serialize(v, (JsonSerializerOptions)null), | |
v => JsonSerializer.Deserialize<Address>(v, (JsonSerializerOptions)null)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment