共用方式為


RelationalOptionsExtension.WithUseQuerySplittingBehavior 方法

定義

建立與這個實例相同的所有選項的新實例,但指定選項已變更。 直接呼叫這個方法並不尋常。 請改用 DbContextOptionsBuilder

public virtual Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension WithUseQuerySplittingBehavior (Microsoft.EntityFrameworkCore.QuerySplittingBehavior querySplittingBehavior);
abstract member WithUseQuerySplittingBehavior : Microsoft.EntityFrameworkCore.QuerySplittingBehavior -> Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension
override this.WithUseQuerySplittingBehavior : Microsoft.EntityFrameworkCore.QuerySplittingBehavior -> Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension
Public Overridable Function WithUseQuerySplittingBehavior (querySplittingBehavior As QuerySplittingBehavior) As RelationalOptionsExtension

參數

querySplittingBehavior
QuerySplittingBehavior

要變更的選項。

傳回

選項已變更的新實例。

適用於