SqlServerReferenceOwnershipBuilderExtensions.ForSqlServerIsMemoryOptimized 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ForSqlServerIsMemoryOptimized(ReferenceOwnershipBuilder, Boolean) |
將實體目標設為記憶體優化時,設定實體對應至的資料表SQL Server。 |
ForSqlServerIsMemoryOptimized<TEntity,TRelatedEntity>(ReferenceOwnershipBuilder<TEntity,TRelatedEntity>, Boolean) |
將實體目標設為記憶體優化時,設定實體對應至的資料表SQL Server。 |
ForSqlServerIsMemoryOptimized(ReferenceOwnershipBuilder, Boolean)
將實體目標設為記憶體優化時,設定實體對應至的資料表SQL Server。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder ForSqlServerIsMemoryOptimized (this Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder referenceOwnershipBuilder, bool memoryOptimized = true);
static member ForSqlServerIsMemoryOptimized : Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder
<Extension()>
Public Function ForSqlServerIsMemoryOptimized (referenceOwnershipBuilder As ReferenceOwnershipBuilder, Optional memoryOptimized As Boolean = true) As ReferenceOwnershipBuilder
參數
- referenceOwnershipBuilder
- ReferenceOwnershipBuilder
要設定之實體類型的產生器。
- memoryOptimized
- Boolean
值,指出資料表是否為記憶體優化。
傳回
相同的產生器實例,以便鏈結多個呼叫。
適用於
ForSqlServerIsMemoryOptimized<TEntity,TRelatedEntity>(ReferenceOwnershipBuilder<TEntity,TRelatedEntity>, Boolean)
將實體目標設為記憶體優化時,設定實體對應至的資料表SQL Server。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<TEntity,TRelatedEntity> ForSqlServerIsMemoryOptimized<TEntity,TRelatedEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<TEntity,TRelatedEntity> referenceOwnershipBuilder, bool memoryOptimized = true) where TEntity : class where TRelatedEntity : class;
static member ForSqlServerIsMemoryOptimized : Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<'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) (referenceOwnershipBuilder As ReferenceOwnershipBuilder(Of TEntity, TRelatedEntity), Optional memoryOptimized As Boolean = true) As ReferenceOwnershipBuilder(Of TEntity, TRelatedEntity)
類型參數
- TEntity
正在設定的實體型別。
- TRelatedEntity
此關聯性的目標實體類型。
參數
- referenceOwnershipBuilder
- ReferenceOwnershipBuilder<TEntity,TRelatedEntity>
要設定之實體類型的產生器。
- memoryOptimized
- Boolean
值,指出資料表是否為記憶體優化。
傳回
相同的產生器實例,以便鏈結多個呼叫。