SqlServerCollectionOwnershipBuilderExtensions.ForSqlServerIsMemoryOptimized Method

Definition

Overloads

ForSqlServerIsMemoryOptimized(CollectionOwnershipBuilder, Boolean)

Configures the table that the entity maps to when targeting SQL Server as memory-optimized.

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

Configures the table that the entity maps to when targeting SQL Server as memory-optimized.

ForSqlServerIsMemoryOptimized(CollectionOwnershipBuilder, Boolean)

Source:
SqlServerCollectionOwnershipBuilderExtensions.cs

Configures the table that the entity maps to when targeting SQL Server as memory-optimized.

C#
public static Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder ForSqlServerIsMemoryOptimized (this Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder collectionOwnershipBuilder, bool memoryOptimized = true);

Parameters

collectionOwnershipBuilder
CollectionOwnershipBuilder

The builder for the entity type being configured.

memoryOptimized
Boolean

A value indicating whether the table is memory-optimized.

Returns

The same builder instance so that multiple calls can be chained.

Applies to

Entity Framework Core 2.2
Product Versions
Entity Framework Core 2.2

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

Source:
SqlServerCollectionOwnershipBuilderExtensions.cs

Configures the table that the entity maps to when targeting SQL Server as memory-optimized.

C#
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;

Type Parameters

TEntity

The entity type being configured.

TRelatedEntity

The entity type that this relationship targets.

Parameters

collectionOwnershipBuilder
CollectionOwnershipBuilder<TEntity,TRelatedEntity>

The builder for the entity type being configured.

memoryOptimized
Boolean

A value indicating whether the table is memory-optimized.

Returns

CollectionOwnershipBuilder<TEntity,TRelatedEntity>

The same builder instance so that multiple calls can be chained.

Applies to

Entity Framework Core 2.2
Product Versions
Entity Framework Core 2.2