SqlServerTableBuilderExtensions.IsTemporal 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
IsTemporal(OwnedNavigationTableBuilder, Action<OwnedNavigationTemporalTableBuilder>)
将表配置为临时表。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder IsTemporal (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder tableBuilder, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTemporalTableBuilder> buildAction);
static member IsTemporal : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTemporalTableBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder
<Extension()>
Public Function IsTemporal (tableBuilder As OwnedNavigationTableBuilder, buildAction As Action(Of OwnedNavigationTemporalTableBuilder)) As OwnedNavigationTableBuilder
参数
- tableBuilder
- OwnedNavigationTableBuilder
要配置的表的生成器。
- buildAction
- Action<OwnedNavigationTemporalTableBuilder>
执行临时表配置的操作。
返回
同一生成器实例,以便可以链接多个调用。
注解
有关详细信息,请参阅将SQL Server临时表与 EF Core 配合使用。
适用于
IsTemporal(OwnedNavigationTableBuilder, Boolean)
将表配置为临时表。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTemporalTableBuilder IsTemporal (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder tableBuilder, bool temporal = true);
static member IsTemporal : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTemporalTableBuilder
<Extension()>
Public Function IsTemporal (tableBuilder As OwnedNavigationTableBuilder, Optional temporal As Boolean = true) As OwnedNavigationTemporalTableBuilder
参数
- tableBuilder
- OwnedNavigationTableBuilder
要配置的表的生成器。
- temporal
- Boolean
一个值,该值指示表是否为临时表。
返回
可用于配置时态表的 对象。
注解
有关详细信息,请参阅将SQL Server临时表与 EF Core 配合使用。
适用于
IsTemporal(TableBuilder, Action<TemporalTableBuilder>)
将表配置为临时表。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder IsTemporal (this Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder tableBuilder, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TemporalTableBuilder> buildAction);
static member IsTemporal : Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TemporalTableBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder
<Extension()>
Public Function IsTemporal (tableBuilder As TableBuilder, buildAction As Action(Of TemporalTableBuilder)) As TableBuilder
参数
- tableBuilder
- TableBuilder
要配置的表的生成器。
- buildAction
- Action<TemporalTableBuilder>
执行临时表配置的操作。
返回
同一生成器实例,以便可以链接多个调用。
注解
有关详细信息和示例,请参阅将SQL Server临时表与 EF Core 配合使用。
适用于
IsTemporal(TableBuilder, Boolean)
将表配置为临时表。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.TemporalTableBuilder IsTemporal (this Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder tableBuilder, bool temporal = true);
static member IsTemporal : Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.TemporalTableBuilder
<Extension()>
Public Function IsTemporal (tableBuilder As TableBuilder, Optional temporal As Boolean = true) As TemporalTableBuilder
参数
- tableBuilder
- TableBuilder
要配置的表的生成器。
- temporal
- Boolean
一个值,该值指示表是否为临时表。
返回
可用于配置时态表的 对象。
注解
有关详细信息和示例,请参阅将SQL Server临时表与 EF Core 配合使用。
适用于
IsTemporal<TEntity>(TableBuilder<TEntity>, Boolean)
将表配置为临时表。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.TemporalTableBuilder<TEntity> IsTemporal<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<TEntity> tableBuilder, bool temporal = true) where TEntity : class;
static member IsTemporal : Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<'Entity (requires 'Entity : null)> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.TemporalTableBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function IsTemporal(Of TEntity As Class) (tableBuilder As TableBuilder(Of TEntity), Optional temporal As Boolean = true) As TemporalTableBuilder(Of TEntity)
类型参数
- TEntity
要配置的实体类型。
参数
- tableBuilder
- TableBuilder<TEntity>
要配置的表的生成器。
- temporal
- Boolean
一个值,该值指示表是否为临时表。
返回
可用于配置时态表的 对象。
注解
有关详细信息和示例,请参阅将SQL Server临时表与 EF Core 配合使用。
适用于
IsTemporal<TEntity>(TableBuilder<TEntity>, Action<TemporalTableBuilder<TEntity>>)
将表配置为临时表。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<TEntity> IsTemporal<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<TEntity> tableBuilder, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TemporalTableBuilder<TEntity>> buildAction) where TEntity : class;
static member IsTemporal : Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<'Entity (requires 'Entity : null)> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.TemporalTableBuilder<'Entity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function IsTemporal(Of TEntity As Class) (tableBuilder As TableBuilder(Of TEntity), buildAction As Action(Of TemporalTableBuilder(Of TEntity))) As TableBuilder(Of TEntity)
类型参数
- TEntity
要配置的实体类型。
参数
- tableBuilder
- TableBuilder<TEntity>
要配置的表的生成器。
- buildAction
- Action<TemporalTableBuilder<TEntity>>
执行临时表配置的操作。
返回
同一生成器实例,以便可以链接多个调用。
注解
有关详细信息和示例,请参阅将SQL Server临时表与 EF Core 配合使用。
适用于
IsTemporal<TOwnerEntity,TDependentEntity>(OwnedNavigationTableBuilder<TOwnerEntity, TDependentEntity>, Action<OwnedNavigationTemporalTableBuilder<TOwnerEntity, TDependentEntity>>)
将表配置为临时表。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity> IsTemporal<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity> tableBuilder, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTemporalTableBuilder<TOwnerEntity,TDependentEntity>> buildAction) where TOwnerEntity : class where TDependentEntity : class;
static member IsTemporal : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTemporalTableBuilder<'OwnerEntity, 'DependentEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function IsTemporal(Of TOwnerEntity As Class, TDependentEntity As Class) (tableBuilder As OwnedNavigationTableBuilder(Of TOwnerEntity, TDependentEntity), buildAction As Action(Of OwnedNavigationTemporalTableBuilder(Of TOwnerEntity, TDependentEntity))) As OwnedNavigationTableBuilder(Of TOwnerEntity, TDependentEntity)
类型参数
- TOwnerEntity
拥有关系的实体类型。
- TDependentEntity
关系的依赖实体类型。
参数
要配置的表的生成器。
- buildAction
- Action<OwnedNavigationTemporalTableBuilder<TOwnerEntity,TDependentEntity>>
执行临时表配置的操作。
返回
同一生成器实例,以便可以链接多个调用。
注解
有关详细信息,请参阅将SQL Server临时表与 EF Core 配合使用。
适用于
IsTemporal<TOwnerEntity,TDependentEntity>(OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity>, Boolean)
将表配置为临时表。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTemporalTableBuilder<TOwnerEntity,TDependentEntity> IsTemporal<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity> tableBuilder, bool temporal = true) where TOwnerEntity : class where TDependentEntity : class;
static member IsTemporal : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTemporalTableBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function IsTemporal(Of TOwnerEntity As Class, TDependentEntity As Class) (tableBuilder As OwnedNavigationTableBuilder(Of TOwnerEntity, TDependentEntity), Optional temporal As Boolean = true) As OwnedNavigationTemporalTableBuilder(Of TOwnerEntity, TDependentEntity)
类型参数
- TOwnerEntity
拥有关系的实体类型。
- TDependentEntity
关系的依赖实体类型。
参数
要配置的表的生成器。
- temporal
- Boolean
一个值,该值指示表是否为临时表。
返回
可用于配置时态表的 对象。
注解
有关详细信息,请参阅将SQL Server临时表与 EF Core 配合使用。