SelectExpression.CreateColumnExpression Method

Definition

Creates a ColumnExpression that references a table on this SelectExpression.

public Microsoft.EntityFrameworkCore.Query.SqlExpressions.ColumnExpression CreateColumnExpression (Microsoft.EntityFrameworkCore.Query.SqlExpressions.TableExpressionBase tableExpression, string columnName, Type type, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping, bool? columnNullable = default);
member this.CreateColumnExpression : Microsoft.EntityFrameworkCore.Query.SqlExpressions.TableExpressionBase * string * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping * Nullable<bool> -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.ColumnExpression
Public Function CreateColumnExpression (tableExpression As TableExpressionBase, columnName As String, type As Type, typeMapping As RelationalTypeMapping, Optional columnNullable As Nullable(Of Boolean) = Nothing) As ColumnExpression

Parameters

tableExpression
TableExpressionBase

The table expression referenced by the column.

columnName
String

The column name.

type
Type

The column CLR type.

typeMapping
RelationalTypeMapping

The column's type mapping.

columnNullable
Nullable<Boolean>

Whether the column is nullable.

Returns

Applies to