共用方式為


ComplexTypePropertyBuilder<TProperty>.HasSentinel(Object) 方法

定義

設定將用來判斷屬性是否已設定的值。 如果屬性設定為 sentinel 值,則會將其視為未設定。 根據預設,sentinel 值是屬性類型的 CLR 預設值。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<TProperty> HasSentinel (object? sentinel);
override this.HasSentinel : obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<'Property>
Public Overridable Function HasSentinel (sentinel As Object) As ComplexTypePropertyBuilder(Of TProperty)

參數

sentinel
Object

sentinel 值。

傳回

如果套用組態,則為相同的產生器實例, null 否則為 。

適用於