共用方式為


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>

設定選項的動作。

傳回

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

適用於