hi all
I was using this connection string with NetCore 2.0
"EvrakaConnection": "server=MyServer;port=3306;database=MyDB;user=root;password=MyPW;Charset=latin5"
Then in startup
var connection = Configuration.GetConnectionString("EvrakaConnection");
services.AddDbContext<EvrakaContext>((serviceProvider, optionsBuilder) => { optionsBuilder.UseMySQL(connection).UseQueryTrackingBehavior(QueryTrackingBehavior.NoTracking); });
It was working,
Now I converted my project into netcore 3.1 and it seems it has problems because it gives
System.NullReferenceException: 'Object reference not set to an instance of an object.' _context was null.
error.
Can you help me to solve this please.