I am creating C# winforms application, which connects to the Database.
Because I have a many records in database, I want to filter data on sql side (Filter must have many options without start/end date).
What is a best way to achive this?
I know I can use BindingSource for filtering, but I think It is not recomended, because in this case I must select all data from database.
p.s. Sorry for my poor English.
You should always prefer filtering data on database instead of bringing unwanted data to your application and filtering with code.
Eg
In the string below you add a WHERE clause and pairs of column = value or column = expression