Share via


LazyLoadingProxiesOptionsBuilder.IgnoreNonVirtualNavigations(Boolean) Method

Definition

Configures the proxies to ignore navigations that are not virtual. By default, an exception will be thrown if a non-virtual navigation is found.

public virtual Microsoft.EntityFrameworkCore.LazyLoadingProxiesOptionsBuilder IgnoreNonVirtualNavigations (bool ignoreNonVirtualNavigations = true);
abstract member IgnoreNonVirtualNavigations : bool -> Microsoft.EntityFrameworkCore.LazyLoadingProxiesOptionsBuilder
override this.IgnoreNonVirtualNavigations : bool -> Microsoft.EntityFrameworkCore.LazyLoadingProxiesOptionsBuilder
Public Overridable Function IgnoreNonVirtualNavigations (Optional ignoreNonVirtualNavigations As Boolean = true) As LazyLoadingProxiesOptionsBuilder

Parameters

ignoreNonVirtualNavigations
Boolean

true to ignore navigations that are not virtual. The default value is false, meaning an exception will be thrown if a non-virtual navigation is found.

Returns

Applies to