LazyLoadingProxiesOptionsBuilder.IgnoreNonVirtualNavigations(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework