From 88826437192609eb706445702da2a8baebdd4af0 Mon Sep 17 00:00:00 2001 From: Ronnie Overby <101028+ronnieoverby@users.noreply.github.com> Date: Fri, 12 Apr 2024 09:23:12 -0400 Subject: [PATCH] Update README.md Correcting documentation for EF Core usage --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 5aa5a87079..4dc676ba98 100644 --- a/README.md +++ b/README.md @@ -496,9 +496,7 @@ Yes. By default, each VO is decorated with a `TypeConverter` and `System.Text.Js Yes, although there are certain considerations. [Please see the EFCore page on the Wiki](https://stevedunn.github.io/Vogen/value-objects-in-efcore.html), but the TL;DR is: -* If the Value Object on your entity is a struct, then you don't need to do anything special - -* But if it is a class, then you need a conversion to be generated, e.g. `[ValueObject(conversions: Conversions.EfCoreValueConverter)]` +* You need a conversion to be generated, e.g. `[ValueObject(conversions: Conversions.EfCoreValueConverter)]` and you need to tell EFCore to use that converter in the `OnModelCreating` method, e.g.: ```csharp