Table of Contents

Interface IDataModelCollectionLoad<TModel>

Namespace
PnP.Core.Model
Assembly
PnP.Core.dll

Defines the very basic interface for every collection of Domain Model objects which supports explicit load

public interface IDataModelCollectionLoad<TModel>

Type Parameters

TModel

The 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

selectors Expression<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

batch Batch

The batch to use

selectors Expression<Func<TModel, object>>[]

The properties to select

Returns

Task<IBatchResult>

The Domain Model object