Home

Entity Framework Core and PostgreSQL

Hello everyone,

I tried to create EFCore datacontext for PostgreSQL, it works fine in visual studio. I can make all queries, reference my assembly from external code and so on. However, when I'm trying to use this context in LinqPAD I have following error message:

TypeLoadException: Inheritance security rules violated by type: 'Remotion.Linq.Parsing.RelinqExpressionVisitor'. Derived types must either match the security accessibility of the base type or be less accessible.

It doesn't matter if I use this connection through "add connection" dialog or just reference assembly and trying to create instance of datacontext manually.

I compiled assembly as net standard 2.0


What it might be? Anyone else faced with this kind of problem?



Comments

Sign In or Register to comment.