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

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, IEnumerable1&result) |bool` Gets the list of values by the value editor specified in the parameter.
We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies.
Powered by AiSTANT