SqlServerCollectionOwnershipBuilderExtensions.ForSqlServerIsMemoryOptimized 方法

定义

重载

ForSqlServerIsMemoryOptimized(CollectionOwnershipBuilder, Boolean)

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

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

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

ForSqlServerIsMemoryOptimized(CollectionOwnershipBuilder, Boolean)

Source:
SqlServerCollectionOwnershipBuilderExtensions.cs

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

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

参数

collectionOwnershipBuilder
CollectionOwnershipBuilder

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

memoryOptimized
Boolean

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

返回

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

适用于

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

Source:
SqlServerCollectionOwnershipBuilderExtensions.cs

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

public static Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<TEntity,TRelatedEntity> ForSqlServerIsMemoryOptimized<TEntity,TRelatedEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<TEntity,TRelatedEntity> collectionOwnershipBuilder, bool memoryOptimized = true) where TEntity : class where TRelatedEntity : class;
static member ForSqlServerIsMemoryOptimized : Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<'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) (collectionOwnershipBuilder As CollectionOwnershipBuilder(Of TEntity, TRelatedEntity), Optional memoryOptimized As Boolean = true) As CollectionOwnershipBuilder(Of TEntity, TRelatedEntity)

类型参数

TEntity

要配置的实体类型。

TRelatedEntity

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

参数

collectionOwnershipBuilder
CollectionOwnershipBuilder<TEntity,TRelatedEntity>

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

memoryOptimized
Boolean

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

返回

CollectionOwnershipBuilder<TEntity,TRelatedEntity>

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

适用于