I'm using Microsoft.EntityFrameworkCore.SqlServer
(3.1) in a .NET Core 3.1 library. This library gets loaded at runtime by an executable .NET Core project by using:
Assembly.LoadFrom('some.dll');
When trying to retrieve data from a DbSet
, I get the following exception:
System.PlatformNotSupportedException: 'Microsoft.Data.SqlClient is not supported on this platform.'
I guess it has something to do with loading the library at runtime, but I don't get why?
I tried various different things, like overriding the Microsoft.Data.SqlClient
library with Version 1.1 or 2.0, but without any success.
Assembly.LoadFrom()
– Nippur