Interface IDataModelGet<TModel>
Defines the read interface for Domain Model objects that can be read.
Namespace: PnP.Core.Model
Assembly: PnP.Core.dll
Syntax
public interface IDataModelGet<TModel>
Type Parameters
TModel
|
Methods
GetAsync(Expression<Func<TModel, Object>>[])
Retrieves a Domain Model object from the remote data source, eventually selecting custom properties or using a default set of properties
Declaration
Task<TModel> GetAsync(params Expression<Func<TModel, object>>[] expressions)
Parameters
Expression<Func<TModel, System.Object>>[]
expressions
The properties to select |
Returns
Task<TModel>
The Domain Model object |
GetBatchAsync(Batch, Expression<Func<TModel, Object>>[])
Batches the retrieval of a Domain Model object from the remote data source, eventually selecting custom properties or using a default set of properties
Declaration
Task<IBatchSingleResult<TModel>> GetBatchAsync(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<IBatchSingleResult<TModel>>
The Domain Model object |