Interface IDataModelCollectionLoad<TModel>
Defines the very basic interface for every collection of Domain Model objects which supports explicit load
public interface IDataModelCollectionLoad<TModel>
Type Parameters
TModelThe actual type of the Domain Model objects
- Extension Methods
Methods
LoadAsync(params Expression<Func<TModel, object>>[])
Loads the list from the remote data source, eventually selecting custom properties or using a default set of properties
Task LoadAsync(params Expression<Func<TModel, object>>[] selectors)
Parameters
selectorsExpression<Func<TModel, object>>[]The properties to select
Returns
- Task
The Domain Model object
LoadBatchAsync(Batch, params Expression<Func<TModel, object>>[])
Batches the load of the list from the remote data source, eventually selecting custom properties or using a default set of properties
Task<IBatchResult> LoadBatchAsync(Batch batch, params Expression<Func<TModel, object>>[] selectors)
Parameters
batchBatchThe batch to use
selectorsExpression<Func<TModel, object>>[]The properties to select
Returns
- Task<IBatchResult>
The Domain Model object