RelationalDbContextOptionsBuilder<TBuilder,TExtension>.WithOption 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.
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.
protected virtual TBuilder WithOption (Func<TExtension,TExtension> setAction);
abstract member WithOption : Func<'Extension, 'Extension (requires 'Extension :> Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension and 'Extension : (new : unit -> 'Extension) and 'Extension :> Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension and 'Extension : (new : unit -> 'Extension))> -> 'Builder
override this.WithOption : Func<'Extension, 'Extension (requires 'Extension :> Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension and 'Extension : (new : unit -> 'Extension) and 'Extension :> Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension and 'Extension : (new : unit -> 'Extension))> -> 'Builder
Protected Overridable Function WithOption (setAction As Func(Of TExtension, TExtension)) As TBuilder
Parameters
- setAction
- Func<TExtension,TExtension>
An action to set the option.
Returns
TBuilder
The same builder instance so that multiple calls can be chained.
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