Share via


TableQuery.Project<T>(T, String[]) Method

Definition

Specifies the names of the entity properties to return when the query is executed against the table.

public static T Project<T> (T entity, params string[] columns);
static member Project : 'T * string[] -> 'T
Public Shared Function Project(Of T) (entity As T, ParamArray columns As String()) As T

Type Parameters

T

The entity type of the query.

Parameters

entity
T

The entity instance to project off of.

columns
String[]

A list of string objects containing the names of the entity properties to return when the query is executed.

Returns

T

A TableQuery instance set with the entity properties to return.

Remarks

The Project clause is optional on a query, used to limit the properties returned from the server. By default, a query will return all properties from the entity.

Applies to