EntityFrameworkCoreDataProtectionExtensions.PersistKeysToDbContext<TContext> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定資料保護系統,將金鑰保存到 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
類型參數
- TContext
參數
- builder
- IDataProtectionBuilder
要修改的 IDataProtectionBuilder 實例。
傳回
值 builder
。