Class DataModelLoadExtensions
Extension methods for PnP.Core.Model.IDataModelLoad
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
IDataModelLoad<TModel>
dataModelLoad
|
Expression<Func<TModel, System.Object>>[]
expressions
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
IDataModelLoad<TModel>
dataModelLoad
|
Expression<Func<TModel, System.Object>>[]
expressions
The properties to select |
Returns
IBatchResult
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
IDataModelLoad<TModel>
dataModelLoad
|
Batch
batch
Batch add this request to |
Expression<Func<TModel, System.Object>>[]
expressions
The properties to select |
Returns
IBatchResult
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
IDataModelLoad<TModel>
dataModelLoad
|
Expression<Func<TModel, System.Object>>[]
expressions
The properties to select |
Returns
Task<IBatchResult>
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
IDataModelLoad<TModel>
dataModelLoad
|
Batch
batch
Batch add this request to |
Expression<Func<TModel, System.Object>>[]
expressions
The properties to select |
Returns
Task<IBatchResult>
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
IDataModelLoad<TModel>
dataModel
|
Expression<Func<TModel, System.Object>>[]
expressions
The properties to select |
Returns
TModel
The Domain Model object |
Type Parameters
TModel
|