Class DataModelGetExtensions
Extension methods for PnP.Core.Model.IDataModelProcess
Inheritance
Namespace: PnP.Core.Model
Assembly: PnP.Core.dll
Syntax
public static class DataModelGetExtensions : object
Methods
Get<TModel>(IDataModelGet<TModel>, 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
public static TModel Get<TModel>(this IDataModelGet<TModel> dataModelGet, params Expression<Func<TModel, object>>[] expressions)
Parameters
IDataModelGet<TModel>
dataModelGet
|
Expression<Func<TModel, System.Object>>[]
expressions
The properties to select |
Returns
TModel
The Domain Model object |
Type Parameters
TModel
|
GetBatch<TModel>(IDataModelGet<TModel>, 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
public static IBatchSingleResult<TModel> GetBatch<TModel>(this IDataModelGet<TModel> dataModelGet, params Expression<Func<TModel, object>>[] expressions)
Parameters
IDataModelGet<TModel>
dataModelGet
|
Expression<Func<TModel, System.Object>>[]
expressions
The properties to select |
Returns
IBatchSingleResult<TModel>
The Domain Model object |
Type Parameters
TModel
|
GetBatch<TModel>(IDataModelGet<TModel>, 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
public static IBatchSingleResult<TModel> GetBatch<TModel>(this IDataModelGet<TModel> dataModelGet, Batch batch, params Expression<Func<TModel, object>>[] expressions)
Parameters
IDataModelGet<TModel>
dataModelGet
|
Batch
batch
Batch add this request to |
Expression<Func<TModel, System.Object>>[]
expressions
The properties to select |
Returns
IBatchSingleResult<TModel>
The Domain Model object |
Type Parameters
TModel
|
GetBatchAsync<TModel>(IDataModelGet<TModel>, 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
public static Task<IBatchSingleResult<TModel>> GetBatchAsync<TModel>(this IDataModelGet<TModel> dataModelGet, params Expression<Func<TModel, object>>[] expressions)
Parameters
IDataModelGet<TModel>
dataModelGet
|
Expression<Func<TModel, System.Object>>[]
expressions
The properties to select |
Returns
Task<IBatchSingleResult<TModel>>
The Domain Model object |
Type Parameters
TModel
|
GetBatchAsync<TModel>(IDataModelGet<TModel>, 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
public static Task<IBatchSingleResult<TModel>> GetBatchAsync<TModel>(this IDataModelGet<TModel> dataModelGet, Batch batch, params Expression<Func<TModel, object>>[] expressions)
Parameters
IDataModelGet<TModel>
dataModelGet
|
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 |
Type Parameters
TModel
|