DbContextOptionsBuilder.IDbContextOptionsBuilderInfrastructure.AddOrUpdateExtension<TExtension> 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.
Adds the given extension to the options. If an existing extension of the same type already exists, it will be replaced.
void IDbContextOptionsBuilderInfrastructure.AddOrUpdateExtension<TExtension> (TExtension extension) where TExtension : class, Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptionsExtension;
abstract member Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptionsBuilderInfrastructure.AddOrUpdateExtension : 'Extension -> unit (requires 'Extension : null and 'Extension :> Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptionsExtension)
override this.Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptionsBuilderInfrastructure.AddOrUpdateExtension : 'Extension -> unit (requires 'Extension : null and 'Extension :> Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptionsExtension)
Sub AddOrUpdateExtension(Of TExtension As {Class, IDbContextOptionsExtension}) (extension As TExtension) Implements IDbContextOptionsBuilderInfrastructure.AddOrUpdateExtension
Type Parameters
- TExtension
The type of extension to be added.
Parameters
- extension
- TExtension
The extension to be added.
Implements
Remarks
This method is intended for use by extension methods to configure the context. It is not intended to be used in application code.
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Entity Framework