Back to Devexpress

EntityServerModeSource Class

corelibraries-devexpress-dot-data-dot-linq.md

latest3.2 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
[ToolboxBitmap(typeof(ResFinder), "Bitmaps256.EntityServerModeSource.bmp")]
public class EntityServerModeSource :
    Component,
    IListSource,
    ISupportInitialize,
    ILinqServerModeFrontEndOwner,
    IDXCloneable,
    IXtraSourceError
vb
<ToolboxBitmap(GetType(ResFinder), "Bitmaps256.EntityServerModeSource.bmp")>
Public Class EntityServerModeSource
    Inherits Component
    Implements IListSource,
               ISupportInitialize,
               ILinqServerModeFrontEndOwner,
               IDXCloneable,
               IXtraSourceError

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.

Inheritance

Object MarshalByRefObject Component EntityServerModeSource

See Also

EntityServerModeSource Members

PivotGridControl - Server Mode with Entity Framework

DevExpress.Data.Linq Namespace