My question is simple if I read or write to Task.Run to make my method asynchronous, will it work like a regular bit of code, or is there something in EF that prohibits this practice?
For instance:
await Task.Run(() =>
{
var data = _context.KittenLog.ToList();
}
I had a difficult feeling that this would open a can of worms, but I can not find anything on Google about combining the two.
source
share