共用方式為


SqlServerCollectionOwnershipBuilderExtensions.ForSqlServerIsMemoryOptimized 方法

定義

多載

ForSqlServerIsMemoryOptimized(CollectionOwnershipBuilder, Boolean)

設定實體以記憶體優化為目標時,實體所對應的資料表SQL Server。

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

設定實體以記憶體優化為目標時,實體所對應的資料表SQL Server。

ForSqlServerIsMemoryOptimized(CollectionOwnershipBuilder, Boolean)

來源:
SqlServerCollectionOwnershipBuilderExtensions.cs

設定實體以記憶體優化為目標時,實體所對應的資料表SQL Server。

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

參數

collectionOwnershipBuilder
CollectionOwnershipBuilder

正在設定之實體類型的產生器。

memoryOptimized
Boolean

值,指出資料表是否為記憶體優化。

傳回

相同的產生器實例,以便鏈結多個呼叫。

適用於

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

來源:
SqlServerCollectionOwnershipBuilderExtensions.cs

設定實體以記憶體優化為目標時,實體所對應的資料表SQL Server。

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)

類型參數

TEntity

正在設定的實體型別。

TRelatedEntity

這個關聯性的目標實體類型。

參數

collectionOwnershipBuilder
CollectionOwnershipBuilder<TEntity,TRelatedEntity>

正在設定之實體類型的產生器。

memoryOptimized
Boolean

值,指出資料表是否為記憶體優化。

傳回

CollectionOwnershipBuilder<TEntity,TRelatedEntity>

相同的產生器實例,以便鏈結多個呼叫。

適用於