c# - What is a good way to design a reusable query editor in WPF? -


i'm considering creating pretty basic query editor (or can called data filter) can use create basic queries and , or. following:

(firstname equal brown , lastname starts l) or age less 10

this visual query editor, telerik's data filter.

i'm wondering how design api such control, reusable , connectable different situations.

what thinking was query editor column names , column types @ first. maybe can list<keyvaluepair<string, type>.

and current project, need sql representation, there can method returns "where" part of sql query. not reusable. if else needs use control, need parse sql statement returned control first.

i'd ideas you, way make thing reusable? in form should return resulting query? i'm pretty new wpf, i'm wondering if there cool generic ways can use resulting query.

and i'm learning mvvm @ moment, nice if point me in directions how make thing usable in mvvm projects.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -