SqlValueListResolver class

Represents a value editor which returns the list of values retrieved from a database with some SQL SELECT statement. Implements the Korzh.EasyQuery.Services.IValueListResolver

public class Korzh.EasyQuery.Services.SqlValueListResolver
    : IValueListResolver

Methods

Type Name Description
IEnumerable<ListItem> GetListBySql(String modelId, String sql) Executes the SQL statement, retrieve the result set and fills the list.
Boolean TryGetValues(ListValueEditor editor, IEnumerable1&` result) Gets the list of values by the value editor specified in the parameter.