EntityFrameworkCoreDataProtectionExtensions.PersistKeysToDbContext<TContext> 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.
Configures the data protection system to persist keys to an EntityFrameworkCore datastore
public:
generic <typename TContext>
where TContext : Microsoft::EntityFrameworkCore::DbContext, Microsoft::AspNetCore::DataProtection::EntityFrameworkCore::IDataProtectionKeyContext[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ PersistKeysToDbContext(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToDbContext<TContext> (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder) where TContext : Microsoft.EntityFrameworkCore.DbContext, Microsoft.AspNetCore.DataProtection.EntityFrameworkCore.IDataProtectionKeyContext;
static member PersistKeysToDbContext : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder (requires 'Context :> Microsoft.EntityFrameworkCore.DbContext and 'Context :> Microsoft.AspNetCore.DataProtection.EntityFrameworkCore.IDataProtectionKeyContext)
<Extension()>
Public Function PersistKeysToDbContext(Of TContext As {DbContext, IDataProtectionKeyContext}) (builder As IDataProtectionBuilder) As IDataProtectionBuilder
Type Parameters
- TContext
Parameters
- builder
- IDataProtectionBuilder
The IDataProtectionBuilder instance to modify.
Returns
The value builder
.