From b23701af2dc37b18f50f88d6aaacb0a77efbecba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Fri, 7 Oct 2016 18:04:23 +0200 Subject: [PATCH] Update README.md --- README.md | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/README.md b/README.md index e6d8f18f..8ebf09e4 100644 --- a/README.md +++ b/README.md @@ -126,24 +126,6 @@ public class ApplicationDbContext : OpenIddictDbContext { } ``` -> **Note:** although recommended, inheriting from `OpenIddictDbContext` is not mandatory. Alternatively, you can also create your own context and manually add the entity sets needed by OpenIddict: - -```csharp -public class ApplicationDbContext : IdentityDbContext { - public ApplicationDbContext(DbContextOptions options) - : base(options) { - } - - public DbSet Applications { get; set; } - - public DbSet Authorizations { get; set; } - - public DbSet Scopes { get; set; } - - public DbSet Tokens { get; set; } -} -``` - > **Note:** if you change the default entity primary key (e.g. to `int` or `Guid` instead of `string`), make sure to register your Entity Framework context using the overload accepting a `TKey` generic argument: ```csharp