ITableBase.IsOptional 方法

定義

多載

IsOptional(IEntityType)

取得值,指出指定型別的實體是否可能不存在於資料列中。

IsOptional(ITypeBase)

取得值,指出指定型別的實體是否可能不存在於資料列中。

IsOptional(IEntityType)

取得值,指出指定型別的實體是否可能不存在於資料列中。

public bool IsOptional (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
abstract member IsOptional : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> bool
Public Function IsOptional (entityType As IEntityType) As Boolean

參數

entityType
IEntityType

傳回

適用於

IsOptional(ITypeBase)

取得值,指出指定型別的實體是否可能不存在於資料列中。

public bool IsOptional (Microsoft.EntityFrameworkCore.Metadata.ITypeBase typeBase);
abstract member IsOptional : Microsoft.EntityFrameworkCore.Metadata.ITypeBase -> bool
Public Function IsOptional (typeBase As ITypeBase) As Boolean

參數

typeBase
ITypeBase

傳回

適用於