語言

DbFunctionParameterBuilder.PropagatesNullability(Boolean) 方法

定義

表示參數是否會傳播空值,也就是說如果參數值為空,資料庫函式本身會回傳空值。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DbFunctionParameterBuilder PropagatesNullability(bool propagatesNullability = true);
abstract member PropagatesNullability : bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.DbFunctionParameterBuilder
override this.PropagatesNullability : bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.DbFunctionParameterBuilder
Public Overridable Function PropagatesNullability (Optional propagatesNullability As Boolean = true) As DbFunctionParameterBuilder

參數

propagatesNullability
Boolean

值表示參數是否會傳播空可性。

傳回

同一個建構者實例,這樣可以串連後續的組態呼叫。

備註

更多資訊與範例請參見 資料庫函數 。

適用於