score:0

// guessing navigation property names here.
query = _context.formfields.include(r => r.form.section.generalform); 

// and later in your code
if (criteria.formfieldnames.any())
{
   query = query.where(f => criteria.formfieldnames.contains(f.fieldname));
}
                            

Related Query

More Query from same tag