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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework