Back to Devexpress

LinqServerModeSource.QueryableSource Property

corelibraries-devexpress-dot-data-dot-linq-dot-linqservermodesource-7b63d948.md

latest6.4 KB
Original Source

LinqServerModeSource.QueryableSource Property

Gets or sets the queryable data source.

Namespace : DevExpress.Data.Linq

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
[DefaultValue(null)]
public IQueryable QueryableSource { get; set; }
vb
<DefaultValue(Nothing)>
Public Property QueryableSource As IQueryable

Property Value

TypeDefaultDescription
IQueryablenull

An object that implements the IQueryable interface.

|

Remarks

The QueryableSource property should be specified in code. An example is shown below:

csharp
public Form1() {
    InitializeComponent();
    linqServerModeSource1.QueryableSource = new DataClasses1DataContext().Customers;
}

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

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.

winforms-grid-linq-to-sql-sever-mode/CS/LinqServerModeOnAdvWorks/Form1.cs#L23

csharp
linqServerModeSource1.QueryableSource = dc.PurchaseOrderHeaders;
gridControl1.DataSource = linqServerModeSource1;

winforms-pivotgrid-how-to-display-underlying-data/CS/DrillDownDataSourceExample/Form1.cs#L20

csharp
// This line of code is generated by Data Source Configuration Wizard
    linqServerModeSource1.QueryableSource = new DrillDownDataSourceExample.DataClasses1DataContext().Invoices;
}

winforms-pivot-grid-create-the-underlying-data-source-asynchronously/CS/XtraPivotGrid_CreateDrillDownDataSourceAsync/Form1.cs#L13

csharp
// This line of code is generated by Data Source Configuration Wizard
linqServerModeSource1.QueryableSource =
new XtraPivotGrid_CreateDrillDownDataSourceAsync.DataClasses1DataContext().Invoices;

winforms-pivotgrid-linq-to-sql-server-mode/CS/LinqToSqlServerModeExample/Form1.cs#L23

csharp
// Specify the queryable source that provides data items.
    linqServerModeSource1.QueryableSource = dc.Invoices;
}

winforms-grid-implement-crud-operations-linqservermodesource/CS/LinqServerModeSource/Form1.cs#L33

csharp
InitializeComponent();
linqServerModeSource1.QueryableSource = nwdContext.Customers;
gridControl.DataSource = linqServerModeSource1;

winforms-grid-linq-to-sql-sever-mode/VB/LinqServerModeOnAdvWorks/Form1.vb#L19

vb
dc.Log = Console.Out ' log queries
linqServerModeSource1.QueryableSource = dc.PurchaseOrderHeaders
gridControl1.DataSource = linqServerModeSource1

winforms-pivotgrid-how-to-display-underlying-data/VB/DrillDownDataSourceExample/Form1.vb#L19

vb
' This line of code is generated by Data Source Configuration Wizard
    linqServerModeSource1.QueryableSource = (New DrillDownDataSourceExample.DataClasses1DataContext()).Invoices
End Sub

winforms-pivot-grid-create-the-underlying-data-source-asynchronously/VB/XtraPivotGrid_CreateDrillDownDataSourceAsync/Form1.vb#L15

vb
' This line of code is generated by Data Source Configuration Wizard
    linqServerModeSource1.QueryableSource = (New XtraPivotGrid_CreateDrillDownDataSourceAsync.DataClasses1DataContext()).Invoices
End Sub

winforms-pivotgrid-linq-to-sql-server-mode/VB/LinqToSqlServerModeExample/Form1.vb#L18

vb
' Specify the queryable source that provides data items.
    linqServerModeSource1.QueryableSource = dc.Invoices
End Sub

winforms-grid-implement-crud-operations-linqservermodesource/VB/LinqServerModeSource/Form1.vb#L32

vb
InitializeComponent()
linqServerModeSource1.QueryableSource = nwdContext.Customers
gridControl.DataSource = linqServerModeSource1

See Also

LinqServerModeSource Class

LinqServerModeSource Members

DevExpress.Data.Linq Namespace