JoyMoe / PGroonga.EntityFrameworkCore

PGroonga extension for Npgsql.EntityFrameworkCore.PostgreSQL (PostgreSQL / Npgsql Entity Framework Core provider). It enable the ability to do full text search, especially Chinese, Japanese, and so on, with EntityFramework Core, PostgreSQL and Groonga.
MIT License
4 stars 1 forks source link

Methods in PGroongaLinqExtensions need to be extended on object, not string to support jsonb query #6

Open rwasef1830 opened 2 years ago

rwasef1830 commented 2 years ago

The methods in PGroongaLinqExtensions are unnecessarily restricted to be on type string, which prevents querying pgroonga indices defined on object properties (with [Column(Type="jsonb")])

rwasef1830 commented 2 years ago

@kinosang this is a simple change but it will remove a chock full of workarounds for me.

kinosang commented 2 years ago

back to time when this project created, Array and JSONB support in Npgsql.EFCore are too weak, so there's restriction on the extensions. I'm planing to move to .net 6 and new Npgsql.EFCore, after do so it may be removed.