共用方式為


DiscriminatorBuilder<TDiscriminator>.HasValue 方法

定義

多載

HasValue(TDiscriminator)

設定要使用的預設鑒別子值。

HasValue(String, TDiscriminator)

設定要用於指定型別實體的鑒別子值。

HasValue(Type, TDiscriminator)

設定要用於指定型別實體的鑒別子值。

HasValue<TEntity>(TDiscriminator)

設定要用於指定泛型型別實體的鑒別子值。

HasValue(TDiscriminator)

來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs

設定要使用的預設鑒別子值。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder<TDiscriminator> HasValue (TDiscriminator value);
abstract member HasValue : 'Discriminator -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder<'Discriminator>
override this.HasValue : 'Discriminator -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder<'Discriminator>
Public Overridable Function HasValue (value As TDiscriminator) As DiscriminatorBuilder(Of TDiscriminator)

參數

value
TDiscriminator

鑒別子值。

傳回

相同的產生器,讓多個呼叫可以鏈結。

適用於

HasValue(String, TDiscriminator)

來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs

設定要用於指定型別實體的鑒別子值。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder<TDiscriminator> HasValue (string entityTypeName, TDiscriminator value);
abstract member HasValue : string * 'Discriminator -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder<'Discriminator>
override this.HasValue : string * 'Discriminator -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder<'Discriminator>
Public Overridable Function HasValue (entityTypeName As String, value As TDiscriminator) As DiscriminatorBuilder(Of TDiscriminator)

參數

entityTypeName
String

要設定鑒別子值的實體類型名稱。

value
TDiscriminator

鑒別子值。

傳回

相同的產生器,讓多個呼叫可以鏈結。

適用於

HasValue(Type, TDiscriminator)

來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs

設定要用於指定型別實體的鑒別子值。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder<TDiscriminator> HasValue (Type entityType, TDiscriminator value);
abstract member HasValue : Type * 'Discriminator -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder<'Discriminator>
override this.HasValue : Type * 'Discriminator -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder<'Discriminator>
Public Overridable Function HasValue (entityType As Type, value As TDiscriminator) As DiscriminatorBuilder(Of TDiscriminator)

參數

entityType
Type

要設定鑒別子值的實體類型。

value
TDiscriminator

鑒別子值。

傳回

相同的產生器,讓多個呼叫可以鏈結。

適用於

HasValue<TEntity>(TDiscriminator)

來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs
來源:
DiscriminatorBuilder%60.cs

設定要用於指定泛型型別實體的鑒別子值。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder<TDiscriminator> HasValue<TEntity> (TDiscriminator value);
abstract member HasValue : 'Discriminator -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder<'Discriminator>
override this.HasValue : 'Discriminator -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder<'Discriminator>
Public Overridable Function HasValue(Of TEntity) (value As TDiscriminator) As DiscriminatorBuilder(Of TDiscriminator)

類型參數

TEntity

要設定鑒別子值的實體類型。

參數

value
TDiscriminator

鑒別子值。

傳回

相同的產生器,讓多個呼叫可以鏈結。

適用於