SelectExpression.CreateColumnExpression 方法

定义

创建一个 ColumnExpression ,它引用此 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

参数

tableExpression
TableExpressionBase

列引用的表表达式。

columnName
String

列名称。

type
Type

列 CLR 类型。

typeMapping
RelationalTypeMapping

列的类型映射。

columnNullable
Nullable<Boolean>

列是否可为 null。

返回

适用于