SqlServerTableBuilderExtensions.IsMemoryOptimized 方法

定义

重载

IsMemoryOptimized(OwnedNavigationTableBuilder, Boolean)

将实体映射到的表配置为内存优化SQL Server。

IsMemoryOptimized(TableBuilder, Boolean)

将实体映射到的表配置为内存优化SQL Server。

IsMemoryOptimized<TEntity>(TableBuilder<TEntity>, Boolean)

将实体映射到的表配置为内存优化SQL Server。

IsMemoryOptimized<TOwnerEntity,TDependentEntity>(OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity>, Boolean)

将实体映射到的表配置为内存优化SQL Server。

IsMemoryOptimized(OwnedNavigationTableBuilder, Boolean)

Source:
SqlServerTableBuilderExtensions.cs
Source:
SqlServerTableBuilderExtensions.cs
Source:
SqlServerTableBuilderExtensions.cs

将实体映射到的表配置为内存优化SQL Server。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder IsMemoryOptimized (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder tableBuilder, bool memoryOptimized = true);
static member IsMemoryOptimized : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder
<Extension()>
Public Function IsMemoryOptimized (tableBuilder As OwnedNavigationTableBuilder, Optional memoryOptimized As Boolean = true) As OwnedNavigationTableBuilder

参数

tableBuilder
OwnedNavigationTableBuilder

要配置的表的生成器。

memoryOptimized
Boolean

一个值,该值指示表是否为内存优化表。

返回

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

注解

有关详细信息和示例,请参阅将SQL Server内存优化表与 EF Core 配合使用

适用于

IsMemoryOptimized(TableBuilder, Boolean)

Source:
SqlServerTableBuilderExtensions.cs
Source:
SqlServerTableBuilderExtensions.cs
Source:
SqlServerTableBuilderExtensions.cs

将实体映射到的表配置为内存优化SQL Server。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder IsMemoryOptimized (this Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder tableBuilder, bool memoryOptimized = true);
static member IsMemoryOptimized : Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder
<Extension()>
Public Function IsMemoryOptimized (tableBuilder As TableBuilder, Optional memoryOptimized As Boolean = true) As TableBuilder

参数

tableBuilder
TableBuilder

要配置的表的生成器。

memoryOptimized
Boolean

一个值,该值指示表是否为内存优化表。

返回

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

注解

有关详细信息和示例,请参阅将SQL Server内存优化表与 EF Core 配合使用

适用于

IsMemoryOptimized<TEntity>(TableBuilder<TEntity>, Boolean)

Source:
SqlServerTableBuilderExtensions.cs
Source:
SqlServerTableBuilderExtensions.cs
Source:
SqlServerTableBuilderExtensions.cs

将实体映射到的表配置为内存优化SQL Server。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<TEntity> IsMemoryOptimized<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<TEntity> tableBuilder, bool memoryOptimized = true) where TEntity : class;
static member IsMemoryOptimized : Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<'Entity (requires 'Entity : null)> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.TableBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function IsMemoryOptimized(Of TEntity As Class) (tableBuilder As TableBuilder(Of TEntity), Optional memoryOptimized As Boolean = true) As TableBuilder(Of TEntity)

类型参数

TEntity

要配置的实体类型。

参数

tableBuilder
TableBuilder<TEntity>

要配置的表的生成器。

memoryOptimized
Boolean

一个值,该值指示表是否为内存优化表。

返回

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

注解

有关详细信息和示例,请参阅将SQL Server内存优化表与 EF Core 配合使用

适用于

IsMemoryOptimized<TOwnerEntity,TDependentEntity>(OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity>, Boolean)

Source:
SqlServerTableBuilderExtensions.cs
Source:
SqlServerTableBuilderExtensions.cs
Source:
SqlServerTableBuilderExtensions.cs

将实体映射到的表配置为内存优化SQL Server。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity> IsMemoryOptimized<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity> tableBuilder, bool memoryOptimized = true) where TOwnerEntity : class where TDependentEntity : class;
static member IsMemoryOptimized : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationTableBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function IsMemoryOptimized(Of TOwnerEntity As Class, TDependentEntity As Class) (tableBuilder As OwnedNavigationTableBuilder(Of TOwnerEntity, TDependentEntity), Optional memoryOptimized As Boolean = true) As OwnedNavigationTableBuilder(Of TOwnerEntity, TDependentEntity)

类型参数

TOwnerEntity

拥有关系的实体类型。

TDependentEntity

关系的依赖实体类型。

参数

tableBuilder
OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity>

要配置的表的生成器。

memoryOptimized
Boolean

一个值,该值指示表是否为内存优化表。

返回

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

注解

有关详细信息和示例,请参阅将SQL Server内存优化表与 EF Core 配合使用

适用于