SqlSet.Cast<TResult> Method

Casts the elements of the set to the specified type.

Namespace: DbExtensions
Assembly: DbExtensions.dll

Overloads

Name Description
Cast(Type) Casts the elements of the set to the specified type.
Cast<TResult>() Casts the elements of the set to the specified type.

Syntax

public SqlSet<TResult> Cast<TResult>()

Type Parameters

TResult

The type to cast the elements of the set to.

Return Value

SqlSet<TResult>
A new SqlSet<TResult> that contains each element of the current set cast to the specified type.

See Also

Reference

SqlSet Class
DbExtensions Namespace

© Max Toro Q.