Interface IDataModelLoad<TModel>
Defines the read interface for Domain Model objects that can be loaded.
Namespace: PnP.Core.Model
Assembly: PnP.Core.dll
Syntax
public interface IDataModelLoad<TModel>
Type Parameters
TModel
|
Methods
LoadAsync(Expression<Func<TModel, Object>>[])
Loads a Domain Model object from the remote data source, eventually selecting custom properties or using a default set of properties
Declaration
Task LoadAsync(params Expression<Func<TModel, object>>[] expressions)
Parameters
Expression<Func<TModel, System.Object>>[]
expressions
The properties to select |
Returns
Task
The Domain Model object |
LoadBatchAsync(Batch, Expression<Func<TModel, Object>>[])
Batches the load of a Domain Model object 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>>[] expressions)
Parameters
Batch
batch
Batch add this request to |
Expression<Func<TModel, System.Object>>[]
expressions
The properties to select |
Returns
Task<IBatchResult>
The Domain Model object |