Share via


Type Methods (LINQ to Entities)

The LINQ standard query operators that deal with CLR type conversion and testing are supported in the Entity Framework. Only CLR types that map to the Entity Data Model (EDM) primitive types are supported in LINQ to Entities. For a list of the EDM primitive types, see Entity Data Model Types. The following table lists the supported and unsupported type methods.

Supported and Unsupported Methods

Method Support Visual Basic function signature C# method signature

Cast

Supported for EDM primitive types

Function Cast(Of TResult) ( _
source As IQueryable _
) As IQueryable(Of TResult)
IQueryable<TResult> Cast<TResult>(
this IQueryable source
)

OfType

Supported for EntityType

Function OfType(Of TResult) ( _
source As IQueryable _
) As IQueryable(Of TResult)
IQueryable<TResult> OfType<TResult>(
this IQueryable source
)

See Also

Concepts

Supported and Unsupported Methods (LINQ to Entities)