Friends, tell me how to filter the selection from the database. Suppose there is a table, it has 5 fields. The user can make a selection of 1, 3 and 5 fields. Maybe 2 and 5 fields. Not known in advance. How to form a query using LINQ dynamically? If I obviously do not know what the user will choose.
Those. I mean how to form a query of this kind on the fly
var list = dataBase.MyTable.Where(x => x.Field2 == "test").Where(x => x.Field5 =="test-test");