SqlServerEntityTypeExtensions.SetIsMemoryOptimized Method

Definition

Overloads

SetIsMemoryOptimized(IMutableEntityType, Boolean)

Sets a value indicating whether the entity type is mapped to a memory-optimized table.

SetIsMemoryOptimized(IConventionEntityType, Nullable<Boolean>, Boolean)

Sets a value indicating whether the entity type is mapped to a memory-optimized table.

SetIsMemoryOptimized(IMutableEntityType, Boolean)

Sets a value indicating whether the entity type is mapped to a memory-optimized table.

public static void SetIsMemoryOptimized (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, bool memoryOptimized);
static member SetIsMemoryOptimized : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * bool -> unit
<Extension()>
Public Sub SetIsMemoryOptimized (entityType As IMutableEntityType, memoryOptimized As Boolean)

Parameters

entityType
IMutableEntityType

The entity type.

memoryOptimized
Boolean

The value to set.

Applies to

SetIsMemoryOptimized(IConventionEntityType, Nullable<Boolean>, Boolean)

Sets a value indicating whether the entity type is mapped to a memory-optimized table.

public static void SetIsMemoryOptimized (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, bool? memoryOptimized, bool fromDataAnnotation = false);
public static bool? SetIsMemoryOptimized (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, bool? memoryOptimized, bool fromDataAnnotation = false);
static member SetIsMemoryOptimized : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Nullable<bool> * bool -> unit
static member SetIsMemoryOptimized : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Nullable<bool> * bool -> Nullable<bool>
<Extension()>
Public Sub SetIsMemoryOptimized (entityType As IConventionEntityType, memoryOptimized As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetIsMemoryOptimized (entityType As IConventionEntityType, memoryOptimized As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Boolean)

Parameters

entityType
IConventionEntityType

The entity type.

memoryOptimized
Nullable<Boolean>

The value to set.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to