Call EF entity by name and perform dynamically search [closed]

1
In the WindowsForm application I'm developing, I want to create only a%% default for listing the records that will be called through the system's logs menu.

This form of listing, in addition to the include, edit and delete buttons of the selected record in the form , will have a panel so that the user can assemble his search expression in the records, which will be composed of COLUMN (% (%)) + OPERATOR (greater, smaller, different, etc.) and VALUE, example DATE GREATER THAN 01/01/2015.

In my application I have 3 layers, Application, Business and Data.

The questions are as follows regarding how to structure this using entity-framework :

  • How to pass to gridview of listing my mapped class EF (table) one has done that can be done either, example products, suppliers, banks etc.

  • Past EF class for combobox of search, how to go mine business layer and execute the method of listing? I imagine that in each business object would have to have a method of listing with a name standard?

  • To create the search panel, which after the user completes will be executed and displayed in form , how can I form than table column relation?

  • How can I dynamically assemble the search by picking COLUMN + OPERATOR + VALUE?

  • asked by anonymous 03.05.2015 / 15:10

    0 answers