SqlServerReferenceOwnershipBuilderExtensions.ForSqlServerIsMemoryOptimized 方法

定义

重载

ForSqlServerIsMemoryOptimized(ReferenceOwnershipBuilder, Boolean)

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

ForSqlServerIsMemoryOptimized<TEntity,TRelatedEntity>(ReferenceOwnershipBuilder<TEntity,TRelatedEntity>, Boolean)

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

ForSqlServerIsMemoryOptimized(ReferenceOwnershipBuilder, Boolean)

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

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

参数

referenceOwnershipBuilder
ReferenceOwnershipBuilder

要配置的实体类型的生成器。

memoryOptimized
Boolean

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

返回

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

适用于

ForSqlServerIsMemoryOptimized<TEntity,TRelatedEntity>(ReferenceOwnershipBuilder<TEntity,TRelatedEntity>, Boolean)

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

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

类型参数

TEntity

要配置的实体类型。

TRelatedEntity

此关系所面向的实体类型。

参数

referenceOwnershipBuilder
ReferenceOwnershipBuilder<TEntity,TRelatedEntity>

要配置的实体类型的生成器。

memoryOptimized
Boolean

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

返回

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

适用于