共用方式為


RelationalDbContextOptionsBuilder<TBuilder,TExtension>.UseQuerySplittingBehavior 方法

定義

設定在 QuerySplittingBehavior 查詢中載入相關集合時要使用的 。

public virtual TBuilder UseQuerySplittingBehavior (Microsoft.EntityFrameworkCore.QuerySplittingBehavior querySplittingBehavior);
abstract member UseQuerySplittingBehavior : Microsoft.EntityFrameworkCore.QuerySplittingBehavior -> 'Builder
override this.UseQuerySplittingBehavior : Microsoft.EntityFrameworkCore.QuerySplittingBehavior -> 'Builder
Public Overridable Function UseQuerySplittingBehavior (querySplittingBehavior As QuerySplittingBehavior) As TBuilder

參數

querySplittingBehavior
QuerySplittingBehavior

傳回

TBuilder

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

備註

如需詳細資訊和範例 ,請參閱 EF Core 分割查詢

適用於