Show / Hide Table of Contents

Class DataSourceLoader

Provides static methods for loading data from collections that implement the IEnumerable<T> or IQueryable<T> interface.

Inheritance
Object
DataSourceLoader
Namespace: DevExtreme.AspNet.Data
Assembly: DevExtreme.AspNet.Data.dll
Syntax
public class DataSourceLoader

Constructors

| Improve this Doc

DataSourceLoader()

Declaration
public DataSourceLoader()

Methods

| Improve this Doc

Load<T>(IEnumerable<T>, DataSourceLoadOptionsBase)

Loads data from a collection that implements the IEnumerable<T> interface.

Declaration
public static LoadResult Load<T>(IEnumerable<T> source, DataSourceLoadOptionsBase options)
Parameters
Type Name Description
IEnumerable<T> source

A collection that implements the IEnumerable<T> interface.

DataSourceLoadOptionsBase options

Data processing settings when loading data.

Returns
Type Description
LoadResult

The load result.

Type Parameters
Name Description
T

The type of objects in the collection.

| Improve this Doc

Load<T>(IQueryable<T>, DataSourceLoadOptionsBase)

Loads data from a collection that implements the IQueryable<T> interface.

Declaration
public static LoadResult Load<T>(IQueryable<T> source, DataSourceLoadOptionsBase options)
Parameters
Type Name Description
IQueryable<T> source

A collection that implements the IQueryable<T> interface.

DataSourceLoadOptionsBase options

Data processing settings when loading data.

Returns
Type Description
LoadResult

The load result.

Type Parameters
Name Description
T

The type of objects in the collection.

| Improve this Doc

LoadAsync<T>(IQueryable<T>, DataSourceLoadOptionsBase, CancellationToken)

Asynchronously loads data from a collection that implements the IQueryable<T> interface.

Declaration
public static Task<LoadResult> LoadAsync<T>(IQueryable<T> source, DataSourceLoadOptionsBase options, CancellationToken cancellationToken = default (CancellationToken))
Parameters
Type Name Description
IQueryable<T> source

A collection that implements the IQueryable<T> interface.

DataSourceLoadOptionsBase options

Data processing settings when loading data.

CancellationToken cancellationToken

A CancellationToken object that delivers a cancellation notice to the running operation.

Returns
Type Description
Task<LoadResult>

A Task<TResult> object that represents the asynchronous operation. The task result contains the load result.

Type Parameters
Name Description
T

The type of objects in the collection.

  • Improve this Doc
Back to top Copyright (c) Developer Express Inc.