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
Name | Type | Description |
---|---|---|
SqlValueListResolver(Func <DbConnection > connectionResolver) | void | Initializes a new instance of the Korzh.EasyQuery.Services.SqlValueListResolver class. |
Methods
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, IEnumerable 1&` result) | bool | Gets the list of values by the value editor specified in the parameter. |