Correct verbiage regarding interface inheritance
parent
d3251a9c38
commit
cf1d3788cb
|
@ -139,8 +139,7 @@ To configure the EF Core provider, call the [`PersistKeysToDbContext<TContext>`]
|
||||||
|
|
||||||
[!code-csharp[Main](key-storage-providers/sample/Startup.cs?name=snippet&highlight=13-15)]
|
[!code-csharp[Main](key-storage-providers/sample/Startup.cs?name=snippet&highlight=13-15)]
|
||||||
|
|
||||||
The generic parameter, `TContext`, must inherit from [DbContext](/dotnet/api/microsoft.entityframeworkcore.dbcontext) and
|
The generic parameter, `TContext`, must inherit from [DbContext](/dotnet/api/microsoft.entityframeworkcore.dbcontext) and implement [IDataProtectionKeyContext](/dotnet/api/microsoft.aspnetcore.dataprotection.entityframeworkcore.idataprotectionkeycontext):
|
||||||
[IDataProtectionKeyContext](/dotnet/api/microsoft.aspnetcore.dataprotection.entityframeworkcore.idataprotectionkeycontext):
|
|
||||||
|
|
||||||
[!code-csharp[Main](key-storage-providers/sample/MyKeysContext.cs)]
|
[!code-csharp[Main](key-storage-providers/sample/MyKeysContext.cs)]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue