✅ Can I create a Liststring in mssql ef core?
my models:
Can I save data like this without creating a new table? This is a template, it will really be used little and I don't care about performance.
6 Replies
If you use Postgres, sure
If you use a different database... I guess you can write a type converter that'll let you store it as a JSON string, or comma-delimited, or some such
I use mssql, recently I saw that they introduced this possibility.
.NET Blog
Announcing Entity Framework Core 7 RC2: JSON Columns
Announcing Entity Framework Core 7 (EF7) RC2 featuring JSON column mapping.
I found something like this but I don't understand how to use it on a simple string list.
not work
Work
Konwersje wartości — EF Core
Konfigurowanie konwerterów wartości w modelu Entity Framework Core
Closed!