Class DataModelLoadExtensions
Extension methods for Pn
Inheritance
Namespace: PnP.Core.Model
Assembly: PnP.Core.dll
Syntax
public static class DataModelLoadExtensions : object
Methods
Load<TModel>(IDataModelLoad<TModel>, 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
public static void Load<TModel>(this IDataModelLoad<TModel> dataModelLoad, params Expression<Func<TModel, object>>[] expressions)
Parameters
IData
|
Expression<Func<TModel, System. The properties to select |
Type Parameters
TModel
|
LoadBatch<TModel>(IDataModelLoad<TModel>, 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
public static IBatchResult LoadBatch<TModel>(this IDataModelLoad<TModel> dataModelLoad, params Expression<Func<TModel, object>>[] expressions)
Parameters
IData
|
Expression<Func<TModel, System. The properties to select |
Returns
IBatch The Domain Model object |
Type Parameters
TModel
|
LoadBatch<TModel>(IDataModelLoad<TModel>, 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
public static IBatchResult LoadBatch<TModel>(this IDataModelLoad<TModel> dataModelLoad, Batch batch, params Expression<Func<TModel, object>>[] expressions)
Parameters
IData
|
Batch
batch
Batch add this request to |
Expression<Func<TModel, System. The properties to select |
Returns
IBatch The Domain Model object |
Type Parameters
TModel
|
LoadBatchAsync<TModel>(IDataModelLoad<TModel>, 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
public static Task<IBatchResult> LoadBatchAsync<TModel>(this IDataModelLoad<TModel> dataModelLoad, params Expression<Func<TModel, object>>[] expressions)
Parameters
IData
|
Expression<Func<TModel, System. The properties to select |
Returns
Task<IBatch The Domain Model object |
Type Parameters
TModel
|
LoadBatchAsync<TModel>(IDataModelLoad<TModel>, 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
public static Task<IBatchResult> LoadBatchAsync<TModel>(this IDataModelLoad<TModel> dataModelLoad, Batch batch, params Expression<Func<TModel, object>>[] expressions)
Parameters
IData
|
Batch
batch
Batch add this request to |
Expression<Func<TModel, System. The properties to select |
Returns
Task<IBatch The Domain Model object |
Type Parameters
TModel
|
QueryProperties<TModel>(IDataModelLoad<TModel>, 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
public static TModel QueryProperties<TModel>(this IDataModelLoad<TModel> dataModel, params Expression<Func<TModel, object>>[] expressions)
Parameters
IData
|
Expression<Func<TModel, System. The properties to select |
Returns
TModel
The Domain Model object |
Type Parameters
TModel
|