I've ported an app I wrote in .NET Core 2.1 to .NET 4.7.2.
Basically almost everything was OK, a couple things were broken (as expected) but there is one thing that doesn't seem to be agnostic across netcore and .net.
And the line is:
DbProviderFactories.RegisterFactory("test", SqlClientFactory.Instance);
var db = new Database("Server=TCPblablabla login", "test");
SqlSet <CharObj> products = db.From<CharObj>("[MyDb].[dbo].[Whatever]").Where("Name = {0}", myvar);
It works perfectly well on .netcore, however, it does not work on .Net 4.7.2. Because the DbProviderFactories.RegisterFactory does not exist in 4.7.2.
I've seem a lot of people complaining about it, but I could not yet find any override etc. Do you guys have ANY idea on how to solve this issue?


PS: It was not supposed to happen, I opened an issue on GitHub and they fixed it a couple of weeks after and closed my ticket, it was even shown in their C# news conference (I don't remember which).