SqlServerTableBuilderExtensions.IsMemoryOptimized Method

Definition

Overloads

IsMemoryOptimized(OwnedNavigationTableBuilder, Boolean)

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

IsMemoryOptimized(TableBuilder, Boolean)

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

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

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

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

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

IsMemoryOptimized(OwnedNavigationTableBuilder, Boolean)

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

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

Parameters

tableBuilder
OwnedNavigationTableBuilder

The builder for the table 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.

Remarks

See Using SQL Server memory-optimized tables with EF Core for more information and examples.

Applies to

IsMemoryOptimized(TableBuilder, Boolean)

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

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

Parameters

tableBuilder
TableBuilder

The builder for the table 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.

Remarks

See Using SQL Server memory-optimized tables with EF Core for more information and examples.

Applies to

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

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

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)

Type Parameters

TEntity

The entity type being configured.

Parameters

tableBuilder
TableBuilder<TEntity>

The builder for the table 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.

Remarks

See Using SQL Server memory-optimized tables with EF Core for more information and examples.

Applies to

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

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

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)

Type Parameters

TOwnerEntity

The entity type owning the relationship.

TDependentEntity

The dependent entity type of the relationship.

Parameters

tableBuilder
OwnedNavigationTableBuilder<TOwnerEntity,TDependentEntity>

The builder for the table 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.

Remarks

See Using SQL Server memory-optimized tables with EF Core for more information and examples.

Applies to