[]
A hint to create and use an index on the specified data column. The hint has default action.
public static T IndexedField<T>(this DataRow row, int columnIndex)
Public Shared Function IndexedField(Of T)(row As DataRow, columnIndex As Integer) As T
| Type | Name | Description |
|---|---|---|
| DataRow | row | The data row. |
| int | columnIndex | The zero-based ordinal position of the column. |
| Type | Description |
|---|---|
| T | The data column value. |
| Name | Description |
|---|---|
| T | The type of the data column |
Hints are used declaratively. They tell LiveLinq query optimizer to create and use an index on that column, if possible. When the query is executed, the hint method IndexedField is replaced with the standard LINQ to DataSet extension method Field. See Hints for more details.
var query = from c in customersTable
where c.IndexedField<string>(0) == "ALFKI"
select c;
A hint to create and use an index on the specified data column. The hint has default action.
public static T IndexedField<T>(this DataRow row, DataColumn column)
Public Shared Function IndexedField(Of T)(row As DataRow, column As DataColumn) As T
| Type | Name | Description |
|---|---|---|
| DataRow | row | The data row. |
| DataColumn | column | The data column. |
| Type | Description |
|---|---|
| T | The data column value. |
| Name | Description |
|---|---|
| T | The type of the data column |
Hints are used declaratively. They tell LiveLinq query optimizer to create and use an index on that column, if possible. When the query is executed, the hint method IndexedField is replaced with the standard LINQ to DataSet extension method Field. See Hints for more details.
var query = from c in customersTable
where c.IndexedField<string>(customerColumn) == "ALFKI"
select c;
A hint to create and use an index on the specified data column. The hint has default action.
public static T IndexedField<T>(this DataRow row, string columnName)
Public Shared Function IndexedField(Of T)(row As DataRow, columnName As String) As T
| Type | Name | Description |
|---|---|---|
| DataRow | row | The data row. |
| string | columnName | The name of the column. |
| Type | Description |
|---|---|
| T | The data column value. |
| Name | Description |
|---|---|
| T | The type of the data column |
Hints are used declaratively. They tell LiveLinq query optimizer to create and use an index on that column, if possible. When the query is executed, the hint method IndexedField is replaced with the standard LINQ to DataSet extension method Field. See Hints for more details.
var query = from c in customersTable
where c.IndexedField<string>("CustomerID") == "ALFKI"
select c;
A hint to create and use an index on the specified data column. The hint has specified action.
public static T IndexedField<T>(this DataRow row, int columnIndex, IndexingHintAction action)
Public Shared Function IndexedField(Of T)(row As DataRow, columnIndex As Integer, action As IndexingHintAction) As T
| Type | Name | Description |
|---|---|---|
| DataRow | row | The data row. |
| int | columnIndex | The zero-based ordinal position of the column. |
| IndexingHintAction | action | The action specified by the hint. |
| Type | Description |
|---|---|
| T | The data column value. |
| Name | Description |
|---|---|
| T | The type of the data column |
Hints are used declaratively. They tell LiveLinq query optimizer to create and use an index on that column, if possible. When the query is executed, the hint method IndexedField is replaced with the standard LINQ to DataSet extension method Field. See Hints for more details.
var query = from c in customersTable
where c.IndexedField<string>(0, IndexingHintAction.Mandatory) == "ALFKI"
select c;
A hint to create and use an index on the specified data column. The hint has specified action.
public static T IndexedField<T>(this DataRow row, DataColumn column, IndexingHintAction action)
Public Shared Function IndexedField(Of T)(row As DataRow, column As DataColumn, action As IndexingHintAction) As T
| Type | Name | Description |
|---|---|---|
| DataRow | row | The data row. |
| DataColumn | column | The data column. |
| IndexingHintAction | action | The action specified by the hint. |
| Type | Description |
|---|---|
| T | The data column value. |
| Name | Description |
|---|---|
| T | The type of the data column |
Hints are used declaratively. They tell LiveLinq query optimizer to create and use an index on that column, if possible. When the query is executed, the hint method IndexedField is replaced with the standard LINQ to DataSet extension method Field. See Hints for more details.
var query =
from c in customersTable
where c.IndexedField<string>(customerColumn, IndexingHintAction.Mandatory) == "ALFKI"
select c;
A hint to create and use an index on the specified data column. The hint has specified action.
public static T IndexedField<T>(this DataRow row, string columnName, IndexingHintAction action)
Public Shared Function IndexedField(Of T)(row As DataRow, columnName As String, action As IndexingHintAction) As T
| Type | Name | Description |
|---|---|---|
| DataRow | row | The data row. |
| string | columnName | The name of the column. |
| IndexingHintAction | action | The action specified by the hint. |
| Type | Description |
|---|---|
| T | The data column value. |
| Name | Description |
|---|---|
| T | The type of the data column |
Hints are used declaratively. They tell LiveLinq query optimizer to create and use an index on that column, if possible. When the query is executed, the hint method IndexedField is replaced with the standard LINQ to DataSet extension method Field. See Hints for more details.
var query =
from c in customersTable
where c.IndexedField<string>("CustomerID", IndexingHintAction.Mandatory) == "ALFKI"
select c;