Share via


LazyLoadingProxiesOptionsBuilder.WithOption Method

Definition

Sets an option by cloning the extension used to store the settings. This ensures the builder does not modify options that are already in use elsewhere.

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

Parameters

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

An action to set the option.

Returns

The same builder instance so that multiple calls can be chained.

Applies to