FetchDataEventArgs.GetFetchExpression<T>() Method
Generates an expression that you can use to obtain appointments from the data source.
Namespace: DevExpress.Xpf.Scheduling
Assembly: DevExpress.Xpf.Scheduling.v25.2.dll
NuGet Package: DevExpress.Wpf.Scheduling
Declaration
Type Parameters
| Name |
|---|
| T |
Returns
| Type | Description |
|---|---|
| Expression<Func<T, Boolean>> | An expression that you can use to obtain appointments from the data source. |
Remarks
The code snippet below illustrates how to use the GetFetchExpression method to implement the FetchAppointments event.
public void FetchAppointments(FetchDataEventArgs args) {
using(var dbContext = new SchedulingContext()) {
args.AsyncResult = dbContext.AppointmentEntities
.Where(args.GetFetchExpression<AppointmentEntity>())
.ToArrayAsync();
}
}
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetFetchExpression<T>() method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.