Is there any way I can use DbConfiguration in .net core? For ex:
public class DbConfig : DbConfiguration
{
public DbConfig()
{
SetProviderServices("System.Data.SqlClient",
System.Data.Entity.SqlServer.SqlProviderServices.Instance);
}
}
I assume I need to get a .net framework dll and reference it in my project in order to use that class? My purpose of doing it is to put a annotation on DbContext class like below:
[DbConfigurationType(typeof(DbConfig))]
public class MyDbContext : DbContext
and ultimately implement this in .net core way.