EntityFramework-Plus: Z.EntityFramework.Plus.EFCore: Postgres database, JSONB data type and FutureValue (InvalidCastException)
Hi,
I have a problem with Z.EntityFramework.Plus.EFCore in combination with Postgres database, JSONB data type and EFPlus FutureValue.
I got this exeption: System.InvalidCastException: 'Unable to cast object of type ‘System.String’ to type
Is there any change to fix the problem?
public class SomeClass
{
publig int Id { get; set; }
[Column(TypeName = "jsonb")]
public SummeryPlain SummeryPlain { get; set; }
}
About this issue
- Original URL
- State: open
- Created 5 years ago
- Reactions: 1
- Comments: 16 (6 by maintainers)
Hi, @JonathanMagnan
Here is another example of an error related to postgres json mapping:
Sounds good. I will prepare an executable ASP Core Visual Studio project.