A newer version of this page is available. Switch to the current version.

EntityServerModeSource Class

The data source for the GridControl, PivotGridControl and SearchLookUpEdit that binds these controls to Entity Framework 4+ model classes in server mode.

Namespace: DevExpress.Data.Linq

Assembly: DevExpress.Data.v20.2.dll

Declaration

[ToolboxBitmap(typeof(ResFinder), "Bitmaps256.EntityServerModeSource.bmp")]
public class EntityServerModeSource :
    Component,
    IListSource,
    ISupportInitialize,
    ILinqServerModeFrontEndOwner,
    IDXCloneable

Remarks

Server mode allows a data-aware control to rapidly work with large datasets. Loading records in small portions on demand and performing data-aware operations on the data server side are the key features of server mode. When the control needs to display a specific portion of data, it calls a specific method of the bound server mode data source. This method sends a corresponding request to the data store, and upon receiving the results, passes them back to the control. The EntityServerModeSource component implements the IListSource interface, and can be used as a data source for a control supporting the server mode feature.

Use EntityServerModeSource to bind a server-mode enabled control to Entity Framework 4+ model classes. To see an example, refer to the Entity Framework 4.0+ Server Mode help topic.

Note

EntityServerModeSource is a read-only data source.

To learn about known issues when using Entity Framework data sources in Server Mode and how to overcome them, please refer to Entity Framework 4.0+ Server Mode Specifics.

The following code snippets (auto-collected from DevExpress Examples) contain references to the EntityServerModeSource class.

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.

Inheritance

Object
MarshalByRefObject
Component
EntityServerModeSource
See Also