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(params 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, object>>[]
expressions
The properties to select |
Returns
|
Task<TModel>
The Domain Model object |
GetBatchAsync(Batch, params 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, object>>[]
expressions
The properties to select |
Returns
|
Task<IBatchSingleResult<TModel>>
The Domain Model object |