internal static void ScaffoldQueryModels(EntityFrameworkCoreProject project) { foreach (var table in project.Database.Tables) { var selection = project.GetSelection(table); if (!selection.Settings.EntitiesWithDataContracts) { continue; } project.Scaffold(project.GetQueryModelClassDefinition(table), project.GetDomainQueryModelsDirectory()); } }