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 拆分查询

适用于