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

Package: Korzh.EasyQuery.Db (targets: netstandard2.0)

Assembly: Korzh.EasyQuery.Db.dll


Name Type Description
SqlValueListResolver(Func<DbConnection> connectionResolver) void Initializes a new instance of the Korzh.EasyQuery.Services.SqlValueListResolver class.


Name Type Description
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) |bool` Gets the list of values by the value editor specified in the parameter.