SqlServerEntityTypeExtensions.SetIsMemoryOptimized Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The configured value.
Applies to
Entity Framework