Skip to main content

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

Assembly: Korzh.EasyQuery.Db.dll

Constructors

NameTypeDescription
SqlValueListResolver(Func<DbConnection> connectionResolver)voidInitializes a new instance of the Korzh.EasyQuery.Services.SqlValueListResolver class.

Methods

NameTypeDescription
GetListBySql(string sql, ListRequestOptions options = null)IEnumerable<ListItem>Executes the SQL statement, retrieve the result set and fills the list.
TryGetValues(ListRequestOptions options, IEnumerable1&` result)boolGets the list of values by the value editor specified in the parameter.