dotnet / efcore

EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
https://docs.microsoft.com/ef/
MIT License
13.63k stars 3.15k forks source link

Cosmos: allow value converters for collections of primitive types #25343

Open AndriySvyryd opened 3 years ago

AndriySvyryd commented 3 years ago

See https://github.com/npgsql/efcore.pg/blob/main/src/EFCore.PG/Storage/ValueConversion/INpgsqlArrayConverter.cs for a way of implementing this.

Also try to use built-in converters automatically, see https://github.com/npgsql/efcore.pg/blob/main/src/EFCore.PG/Storage/ValueConversion/NpgsqlValueConverterSelector.cs

ajcvickers commented 1 year ago

Note from triage: also consider other issues related to primitive collections--see label area-primitive-collections.

ajcvickers commented 7 months ago

Note for team: either a duplicate of #4179, or already supported if the issue means using value converters explicitly.