Share via


SqlServerReferenceOwnershipBuilderExtensions.ForSqlServerIsMemoryOptimized Method

Definition

Overloads

ForSqlServerIsMemoryOptimized(ReferenceOwnershipBuilder, Boolean)

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

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

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

ForSqlServerIsMemoryOptimized(ReferenceOwnershipBuilder, Boolean)

Source:
SqlServerReferenceOwnershipBuilderExtensions.cs
Source:
SqlServerReferenceOwnershipBuilderExtensions.cs

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

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

Parameters

referenceOwnershipBuilder
ReferenceOwnershipBuilder

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

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

Source:
SqlServerReferenceOwnershipBuilderExtensions.cs
Source:
SqlServerReferenceOwnershipBuilderExtensions.cs

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

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)

Type Parameters

TEntity

The entity type being configured.

TRelatedEntity

The entity type that this relationship targets.

Parameters

referenceOwnershipBuilder
ReferenceOwnershipBuilder<TEntity,TRelatedEntity>

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