共用方式為


RelationalOptionsExtension.WithUseRelationalNulls(Boolean) 方法

定義

建立與這個實例相同的所有選項的新實例,但指定選項已變更。 直接呼叫這個方法並不尋常。 請改用 DbContextOptionsBuilder

public virtual Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension WithUseRelationalNulls (bool useRelationalNulls);
abstract member WithUseRelationalNulls : bool -> Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension
override this.WithUseRelationalNulls : bool -> Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension
Public Overridable Function WithUseRelationalNulls (useRelationalNulls As Boolean) As RelationalOptionsExtension

參數

useRelationalNulls
Boolean

要變更的選項。

傳回

選項已變更的新實例。

適用於