EntityShaperExpression.MarkAsNullable 方法

定义

注意

Use MakeNullable() instead.

将此整形器标记为可以为 null,表示它可以塑造 null 实体实例。

public virtual Microsoft.EntityFrameworkCore.Query.EntityShaperExpression MarkAsNullable ();
[System.Obsolete("Use MakeNullable() instead.")]
public virtual Microsoft.EntityFrameworkCore.Query.EntityShaperExpression MarkAsNullable ();
abstract member MarkAsNullable : unit -> Microsoft.EntityFrameworkCore.Query.EntityShaperExpression
override this.MarkAsNullable : unit -> Microsoft.EntityFrameworkCore.Query.EntityShaperExpression
[<System.Obsolete("Use MakeNullable() instead.")>]
abstract member MarkAsNullable : unit -> Microsoft.EntityFrameworkCore.Query.EntityShaperExpression
override this.MarkAsNullable : unit -> Microsoft.EntityFrameworkCore.Query.EntityShaperExpression
Public Overridable Function MarkAsNullable () As EntityShaperExpression

返回

如果为空性未更改,则此表达式或具有更新的可为空性的表达式。

属性

适用于