A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
@Firke, Yogesh (Cognizant),Welcome to Microsoft Q&A, based on the Microsoft Learning Query types are consolidated with entity types, Query types have some changes after ef core 3.0.
I recommend that you could try the following code to replace DbSet<> with DbQuery.
public static IQueryable AsNoTracking(this IQueryable source)
{
var asDbQuery = source as DbSet<Teacher>;
return asDbQuery != null ? asDbQuery.AsNoTracking() : CommonAsNoTracking(source);
}
Hope my solution could help you. Best Regards, Jack If the answer is helpful, please click "Accept Answer" and upvote it. Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.