DiscriminatorBuilder.HasValue 方法

定义

重载

HasValue(Object)

配置要使用的默认鉴别器值。

HasValue(String, Object)

配置要用于给定类型的实体的鉴别器值。

HasValue(Type, Object)

配置要用于给定类型的实体的鉴别器值。

HasValue<TEntity>(Object)

配置要用于给定泛型类型的实体的鉴别器值。

HasValue(Object)

Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs

配置要使用的默认鉴别器值。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder HasValue (object value);
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder HasValue (object? value);
abstract member HasValue : obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder
override this.HasValue : obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder
Public Overridable Function HasValue (value As Object) As DiscriminatorBuilder

参数

value
Object

鉴别器值。

返回

同一生成器,以便可以链接多个调用。

适用于

HasValue(String, Object)

Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs

配置要用于给定类型的实体的鉴别器值。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder HasValue (string entityTypeName, object value);
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder HasValue (string entityTypeName, object? value);
abstract member HasValue : string * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder
override this.HasValue : string * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder
Public Overridable Function HasValue (entityTypeName As String, value As Object) As DiscriminatorBuilder

参数

entityTypeName
String

要为其设置鉴别器值的实体类型的名称。

value
Object

鉴别器值。

返回

同一生成器,以便可以链接多个调用。

适用于

HasValue(Type, Object)

Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs

配置要用于给定类型的实体的鉴别器值。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder HasValue (Type entityType, object value);
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder HasValue (Type entityType, object? value);
abstract member HasValue : Type * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder
override this.HasValue : Type * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder
Public Overridable Function HasValue (entityType As Type, value As Object) As DiscriminatorBuilder

参数

entityType
Type

要为其设置鉴别器值的实体类型。

value
Object

鉴别器值。

返回

同一生成器,以便可以链接多个调用。

适用于

HasValue<TEntity>(Object)

Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs
Source:
DiscriminatorBuilder.cs

配置要用于给定泛型类型的实体的鉴别器值。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder HasValue<TEntity> (object value);
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder HasValue<TEntity> (object? value);
abstract member HasValue : obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder
override this.HasValue : obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.DiscriminatorBuilder
Public Overridable Function HasValue(Of TEntity) (value As Object) As DiscriminatorBuilder

类型参数

TEntity

要为其设置鉴别器值的实体类型。

参数

value
Object

鉴别器值。

返回

同一生成器,以便可以链接多个调用。

适用于