Interface IDbContextOptionsBuilderInfrastructure
- Namespace
- Microsoft.EntityFrameworkCore.Infrastructure
- Assembly
- Microsoft.EntityFrameworkCore.dll
Explicitly implemented by DbContextOptionsBuilder to hide methods that are used by database provider extension methods but not intended to be called by application developers.
This interface is typically used by database providers (and other extensions). It is generally not used in application code.
public interface IDbContextOptionsBuilderInfrastructure
Remarks
See Implementation of database providers and extensions for more information and examples.
Methods
AddOrUpdateExtension<TExtension>(TExtension)
Adds the given extension to the options. If an existing extension of the same type already exists, it will be replaced.
This property is intended for use by extension methods to configure the context. It is not intended to be used in application code.
void AddOrUpdateExtension<TExtension>(TExtension extension) where TExtension : class, IDbContextOptionsExtension
Parameters
extension
TExtensionThe extension to be added.
Type Parameters
TExtension
The type of extension to be added.
Remarks
See Implementation of database providers and extensions for more information and examples.