PivotGridExtension.BindToEF(String, String, EventHandler<LinqServerModeDataSourceSelectEventArgs>, EventHandler<ServerModeExceptionThrownEventArgs>) Method
Binds the PivotGrid to a data source via the Entity Framework in database server mode.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
public PivotGridExtension BindToEF(
string contextTypeName,
string tableName,
EventHandler<LinqServerModeDataSourceSelectEventArgs> selectingMethod,
EventHandler<ServerModeExceptionThrownEventArgs> exceptionThrownMethod
)
Parameters
Name | Type | Description |
---|---|---|
contextTypeName | String | A String object representing the DataContext type name. |
tableName | String | A String object specifying the table name. |
selectingMethod | EventHandler<LinqServerModeDataSourceSelectEventArgs> | |
exceptionThrownMethod | EventHandler<ServerModeExceptionThrownEventArgs> |
Returns
Type | Description |
---|---|
PivotGridExtension | A PivotGridExtension object representing the PivotGrid extension. |
See Also