Could someone check to see I am not doing something stupid here and that this looks like a bug. I am taking the latest
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite as the dependency in my project and it looks like there is a bug somewhere in that dependency tree (Not sure where it would be though).
Am doing a simple select on a table using EFCore syntax and the generated SELECT SQL is including a spurious
u.unit_id field that doesn't exist in the table and is not specified in the EFCore model definition. More details in the Gist along with the code: https://gist.github.com/rurounijones/c4adc0b90d4cf47fb3bc480af814a989
jsonb_path_matchmethod, how would that look in c#?
JsonbPathMatch(object, string, string)or would it be more like
JsonbPathMatch(object, string, object)and the second
objectparam gets translated aswell? i.e. we created a custom method translator in the form of
JsonbPathMatch(object, string, string)and are looking to upstream it
.Where(p => p.JsonField, "exists($[*] ? (@.id == $id && @.value == $value))", JsonSerializer.SerializeObject())
Hi everyone, a newbie question about Npsql 5.0.0
I'm following this tutorial here: http://zetcode.com/csharp/postgresql/ and just using the most basic example where I have a hardcoded connection string and want to print out the version of my local postgres DB.
The program runs successfully if I use
5.0.0-preview1 but fails when I use
5.0.0 with this "Unhandled exception. System.TypeInitializationException: The type initializer for 'Npgsql.TypeMapping.GlobalTypeMapper' threw an exception. ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types." error - could someone please point me in the right direction? How should I configure my connection string for Npsql 5.0.0? thank you very much!