LazyLoadingProxiesOptionsBuilder Class
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.
Allows SQL Server specific configuration to be performed on DbContextOptions.
public class LazyLoadingProxiesOptionsBuilder
type LazyLoadingProxiesOptionsBuilder = class
Public Class LazyLoadingProxiesOptionsBuilder
- Inheritance
-
LazyLoadingProxiesOptionsBuilder
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
LazyLoadingProxiesOptionsBuilder(DbContextOptionsBuilder) |
Initializes a new instance of the LazyLoadingProxiesOptionsBuilder class. |
Properties
OptionsBuilder |
Gets the core options builder. |
Methods
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
Entity Framework