I'm developing a new application using entity framework 6.1. This time I'm using async methdos for everything inside my repository class. It means that I'm not using SaveChanges(), ToList(), Count(), but SaveChangesAsync(), ToListAsync(), CountAsync() instead.
I made a research to find out the right time to use the async operations. The problem is that some articles says to ALWAYS use async operations if possible (considering EF 6.1), it may not show any difference in simple scenarios, but today async is always a good choice.
However, some articles says that DbContext
class is a little bit messy when the subject is async queries, and you should be careful when choosing async operations...
Finally, after hours of researches, I still don't know if I can use async operations without problems (considering an up to date version of EF)... some say yes, some say no... So, my question is "Can I use async operations to every database query without problems?"
Hope that I was clear about my problem.