SqlServerCollectionOwnershipBuilderExtensions.ForSqlServerIsMemoryOptimized 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
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)
Configures the table that the entity maps to when targeting SQL Server as memory-optimized.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder ForSqlServerIsMemoryOptimized (this Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder collectionOwnershipBuilder, bool memoryOptimized = true);
static member ForSqlServerIsMemoryOptimized : Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder
<Extension()>
Public Function ForSqlServerIsMemoryOptimized (collectionOwnershipBuilder As CollectionOwnershipBuilder, Optional memoryOptimized As Boolean = true) As CollectionOwnershipBuilder
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
ForSqlServerIsMemoryOptimized<TEntity,TRelatedEntity>(CollectionOwnershipBuilder<TEntity,TRelatedEntity>, Boolean)
Configures the table that the entity maps to when targeting SQL Server as memory-optimized.
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;
static member ForSqlServerIsMemoryOptimized : Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<'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) (collectionOwnershipBuilder As CollectionOwnershipBuilder(Of TEntity, TRelatedEntity), Optional memoryOptimized As Boolean = true) As CollectionOwnershipBuilder(Of TEntity, TRelatedEntity)
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
The same builder instance so that multiple calls can be chained.
Applies to
Entity Framework