Closed Thanseem007 closed 3 years ago
Adding to it
This seems to be an EF6 issue - but the EF6 provider is pretty much archived at this point. I can accept specific, well-tested PRs to fix specific bugs, but am otherwise no longer actively working on it.
Entity Framework 6 is very limited to only the datatypes defined in EF6. XML is not one of them. Better use EF Core or something if you want support for more types. Everything else needs workarounds from your side.
Hi guys,
I've created a model pointing to an existing PostgreSQL database. When I'm trying to query the database with below code.
In the Employee table there is a variable with data type as Xml. When I see the generated script. its try to union Xml variable with a text type. I think the text type is the default data type to which the nuget package convert if the corresponding varaible is ot in the other table.
Steps to reproduce
You can reproduce this error by doing a select query with two include methods and you have to set one parameter as Xml in database.
The issue
If you are seeing an exception, include the full exceptions details (message and stack trace).
Further technical details
Npgsql version: 4.0.10 PostgreSQL version: 12.4 Operating system: windows