Skip to main content
A newer version of this page is available. .

DataViewExtensionBase.BindToLINQ(String, String) Method

Binds the DataView to a queryable source.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v18.2.dll

Declaration

public DataViewExtensionBase BindToLINQ(
    string contextTypeName,
    string tableName
)

Parameters

Name Type Description
contextTypeName String

A String object representing the DataContext type name.

tableName String

A String object specifying the table name.

Returns

Type Description
DataViewExtensionBase

A DataViewExtensionBase object representing the DataView extension.

Remarks

Note

The current BindToLINQ overload catches and conceals any exception thrown by an IQueryable provider. To catch these exceptions manually, use the BindToLINQ(string contextTypeName, string tableName, EventHandler<LinqServerModeDataSourceSelectEventArgs> selectingMethod, EventHandler<ServerModeExceptionThrownEventArgs> exceptionThrownMethod) overload method.

See Also