共用方式為


DbFunctionParameterBuilder.PropagatesNullability(Boolean) 方法

定義

指出參數是否傳播可為 Null,這表示如果其值為 null,則資料庫函式本身會傳回 Null。

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

值,指出參數是否傳播可為 Null 性。

傳回

相同的產生器實例,以便鏈結進一步的組態呼叫。

備註

如需詳細資訊和範例,請參閱 資料庫函 式。

適用於