EntityFrameworkCoreDataProtectionExtensions.PersistKeysToDbContext<TContext> Method

Definition

Configures the data protection system to persist keys to an EntityFrameworkCore datastore

public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToDbContext<TContext> (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder) where TContext : Microsoft.EntityFrameworkCore.DbContext, Microsoft.AspNetCore.DataProtection.EntityFrameworkCore.IDataProtectionKeyContext;

Type Parameters

TContext

Parameters

builder
IDataProtectionBuilder

The IDataProtectionBuilder instance to modify.

Returns

The value builder.

Applies to