LazyLoadingProxiesOptionsBuilder.WithOption 方法

定义

通过克隆用于存储设置的扩展来设置选项。 这可确保生成器不会修改已在其他位置使用的选项。

protected virtual Microsoft.EntityFrameworkCore.LazyLoadingProxiesOptionsBuilder WithOption (Func<Microsoft.EntityFrameworkCore.Proxies.Internal.ProxiesOptionsExtension,Microsoft.EntityFrameworkCore.Proxies.Internal.ProxiesOptionsExtension> setAction);
abstract member WithOption : Func<Microsoft.EntityFrameworkCore.Proxies.Internal.ProxiesOptionsExtension, Microsoft.EntityFrameworkCore.Proxies.Internal.ProxiesOptionsExtension> -> Microsoft.EntityFrameworkCore.LazyLoadingProxiesOptionsBuilder
override this.WithOption : Func<Microsoft.EntityFrameworkCore.Proxies.Internal.ProxiesOptionsExtension, Microsoft.EntityFrameworkCore.Proxies.Internal.ProxiesOptionsExtension> -> Microsoft.EntityFrameworkCore.LazyLoadingProxiesOptionsBuilder
Protected Overridable Function WithOption (setAction As Func(Of ProxiesOptionsExtension, ProxiesOptionsExtension)) As LazyLoadingProxiesOptionsBuilder

参数

setAction
Func<Microsoft.EntityFrameworkCore.Proxies.Internal.ProxiesOptionsExtension,Microsoft.EntityFrameworkCore.Proxies.Internal.ProxiesOptionsExtension>

用于设置选项的操作。

返回

同一生成器实例,以便可以链接多个调用。

适用于