I work with entity core and have a database table Id, Name, Organization, Phone
I give the user the opportunity to choose from it by any combination of fields for further export to excel He can choose For example: id and name or name, organization, phone.
How can I correctly compose a query with linq in the database to search for this data to export it?