You can login if you already have an account or register by clicking the button below.
Registering is free and all you need is a username and password. We never ask you for your e-mail.
[–]PuttItOut0 points
2 points
2 points
(+2|-0)
ago
So I've imported the schema and run the tests, and they all failed with:
The field '<some field here>' has a type currently unknown to Npgsql (OID 340359). You can retrieve it as a string by marking it as unknown, please see the FAQ.
The code above is using EF6 while we are using EF Core, similar but different. If I am going to use this I can not annotate models because I would have to use conditional compilation and I do not want to add this complexity to Voat's code base.
This seems that once we find an alternate way to perform the following line we can actually use this technique.
view the rest of the comments →
[–] PuttItOut 0 points 2 points 2 points (+2|-0) ago
So I've imported the schema and run the tests, and they all failed with:
The code above is using EF6 while we are using EF Core, similar but different. If I am going to use this I can not annotate models because I would have to use conditional compilation and I do not want to add this complexity to Voat's code base.
This seems that once we find an alternate way to perform the following line we can actually use this technique.
Attn @FuzzyWords
[–] logos_ethos 0 points 1 point 1 point (+1|-0) ago
Is https://github.com/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL something that you can use? It supports citext, but I think that you have to change:
to
in both files so that the server sends back "citext" instead of "public.citext".
[–] PuttItOut ago
That is the library we use to access PostgreSQL. And I will try this among some other things to see what combo will work.
I don't know if I'll have time until tomorrow though.