Interface IDataModelCollectionLoad<TModel>
Defines the very basic interface for every collection of Domain Model objects which supports explicit load
Namespace: PnP.Core.Model
Assembly: PnP.Core.dll
Syntax
public interface IDataModelCollectionLoad<TModel>
Type Parameters
TModel
The actual type of the Domain Model objects |
Methods
LoadAsync(Expression<Func<TModel, Object>>[])
Loads the list from the remote data source, eventually selecting custom properties or using a default set of properties
Declaration
Task LoadAsync(params Expression<Func<TModel, object>>[] selectors)
Parameters
Expression<Func<TModel, System.Object>>[]
selectors
The properties to select |
Returns
Task
The Domain Model object |
LoadBatchAsync(Batch, 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
Declaration
Task<IBatchResult> LoadBatchAsync(Batch batch, params Expression<Func<TModel, object>>[] selectors)
Parameters
Batch
batch
The batch to use |
Expression<Func<TModel, System.Object>>[]
selectors
The properties to select |
Returns
Task<IBatchResult>
The Domain Model object |