Share via


LazyLoadingProxiesOptionsBuilder Class

Definition

Allows SQL Server specific configuration to be performed on DbContextOptions.

[System.Runtime.CompilerServices.Nullable(0)]
public class LazyLoadingProxiesOptionsBuilder
[<System.Runtime.CompilerServices.Nullable(0)>]
type LazyLoadingProxiesOptionsBuilder = class
Public Class LazyLoadingProxiesOptionsBuilder
Inheritance
LazyLoadingProxiesOptionsBuilder
Attributes

Remarks

Instances of this class are returned from a call to SqlServerDbContextOptionsExtensions.UseSqlServer and it is not designed to be directly constructed in your application code.

Constructors

Name Description
LazyLoadingProxiesOptionsBuilder(DbContextOptionsBuilder)

Initializes a new instance of the LazyLoadingProxiesOptionsBuilder class.

Properties

Name Description
OptionsBuilder

Gets the core options builder.

Methods

Name Description
IgnoreNonVirtualNavigations(Boolean)

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

WithOption(Func<ProxiesOptionsExtension,ProxiesOptionsExtension>)

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.

Applies to