RelationalEntityTypeExtensions.SetIsTableExcludedFromMigrations 方法

定义

重载

SetIsTableExcludedFromMigrations(IMutableEntityType, Nullable<Boolean>)

设置一个值,该值指示迁移是否忽略关联的表。

SetIsTableExcludedFromMigrations(IConventionEntityType, Nullable<Boolean>, Boolean)

设置一个值,该值指示迁移是否忽略关联的表。

SetIsTableExcludedFromMigrations(IMutableEntityType, Nullable<Boolean>, StoreObjectIdentifier)

设置一个值,该值指示迁移是否忽略关联的表。

SetIsTableExcludedFromMigrations(IConventionEntityType, Nullable<Boolean>, StoreObjectIdentifier, Boolean)

设置一个值,该值指示迁移是否忽略关联的表。

SetIsTableExcludedFromMigrations(IMutableEntityType, Nullable<Boolean>)

设置一个值,该值指示迁移是否忽略关联的表。

public static void SetIsTableExcludedFromMigrations (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, bool? excluded);
static member SetIsTableExcludedFromMigrations : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Nullable<bool> -> unit
<Extension()>
Public Sub SetIsTableExcludedFromMigrations (entityType As IMutableEntityType, excluded As Nullable(Of Boolean))

参数

entityType
IMutableEntityType

实体类型。

excluded
Nullable<Boolean>

一个值,该值指示迁移是否忽略关联的表。

适用于

SetIsTableExcludedFromMigrations(IConventionEntityType, Nullable<Boolean>, Boolean)

设置一个值,该值指示迁移是否忽略关联的表。

public static bool? SetIsTableExcludedFromMigrations (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, bool? excluded, bool fromDataAnnotation = false);
static member SetIsTableExcludedFromMigrations : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Nullable<bool> * bool -> Nullable<bool>
<Extension()>
Public Function SetIsTableExcludedFromMigrations (entityType As IConventionEntityType, excluded As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Boolean)

参数

entityType
IConventionEntityType

实体类型。

excluded
Nullable<Boolean>

一个值,该值指示迁移是否忽略关联的表。

fromDataAnnotation
Boolean

指示配置是否是使用数据注释指定的。

返回

配置的值。

适用于

SetIsTableExcludedFromMigrations(IMutableEntityType, Nullable<Boolean>, StoreObjectIdentifier)

设置一个值,该值指示迁移是否忽略关联的表。

public static void SetIsTableExcludedFromMigrations (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, bool? excluded, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member SetIsTableExcludedFromMigrations : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Nullable<bool> * StoreObjectIdentifier -> unit
<Extension()>
Public Sub SetIsTableExcludedFromMigrations (entityType As IMutableEntityType, excluded As Nullable(Of Boolean), ByRef storeObject As StoreObjectIdentifier)

参数

entityType
IMutableEntityType

实体类型。

excluded
Nullable<Boolean>

一个值,该值指示迁移是否忽略关联的表。

storeObject
StoreObjectIdentifier

类似表的存储对象的标识符。

适用于

SetIsTableExcludedFromMigrations(IConventionEntityType, Nullable<Boolean>, StoreObjectIdentifier, Boolean)

设置一个值,该值指示迁移是否忽略关联的表。

public static bool? SetIsTableExcludedFromMigrations (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, bool? excluded, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, bool fromDataAnnotation = false);
static member SetIsTableExcludedFromMigrations : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Nullable<bool> * StoreObjectIdentifier * bool -> Nullable<bool>
<Extension()>
Public Function SetIsTableExcludedFromMigrations (entityType As IConventionEntityType, excluded As Nullable(Of Boolean), ByRef storeObject As StoreObjectIdentifier, Optional fromDataAnnotation As Boolean = false) As Nullable(Of Boolean)

参数

entityType
IConventionEntityType

实体类型。

excluded
Nullable<Boolean>

一个值,该值指示迁移是否忽略关联的表。

storeObject
StoreObjectIdentifier

类似表的存储对象的标识符。

fromDataAnnotation
Boolean

指示配置是否是使用数据注释指定的。

返回

配置的值。

适用于