Compartir a través de


EntityFrameworkCoreDataProtectionExtensions.PersistKeysToDbContext<TContext> Método

Definición

Configura el sistema de protección de datos para conservar las claves en un almacén de datos EntityFrameworkCore.

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

Parámetros de tipo

TContext

Parámetros

builder
IDataProtectionBuilder

Instancia IDataProtectionBuilder que se va a modificar.

Devoluciones

El valor builder.

Se aplica a