ISqlBuilderLoader<TModel> Interface
.NET Standard 2.x
Provides methods to retrieve data by a dynamic query.
Namespace: SnapObjects.Data
Assembly: SnapObjects.Data.dll
Syntax
public interface ISqlBuilderLoader<TModel>
Methods
Name | Return type | Description |
---|---|---|
Load(params object[] parameters) | ILoadable<TModel> | Retrieves data by the built SQL statement. |
LoadAsync(params object[] parameters) | Task<ILoadable<TModel>> | Asynchronously retrieves data by the built SQL statement. |
LoadAsync(object[] parameters, CancellationToken cancellationToken) | Task<ILoadable<TModel>> | Asynchronously retrieves data by the built SQL statement. |
LoadByPage(int currentIndex, int pageSize, params object[] parameters) | ILoadable<TModel> | Retrieves data starting from a specified row by the built SQL statement. |
LoadByPageAsync(int currentIndex, int pageSize, params object[] parameters) | Task<ILoadable<TModel>> | Asynchronously retrieves data starting from a specified row by the built SQL statement. |
LoadByPageAsync(int currentIndex, int pageSize, object[] parameters, CancellationToken cancellationToken) | Task<ILoadable<TModel>> | Asynchronously retrieves data starting from a specified row by the built SQL statement. |