You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Identity Core 3.x - Use ElCamino.AspNetCore.Identity.DocumentDB, sample Mvc app: https://github.com/dlmelendez/identitycoredocumentdb/tree/master/sample/samplecore3.mvc
8
+
Identity Core 3.x - Use ElCamino.AspNetCore.Identity.CosmosDB, sample Mvc app: https://github.com/dlmelendez/identitycosmosdb/tree/master/sample/samplecore3.mvc
8
9
9
-
Identity Core 2.x - Use ElCamino.AspNetCore.Identity.DocumentDB, sample Mvc app: https://github.com/dlmelendez/identitycoredocumentdb/tree/master/sample/samplecore2.mvc
10
+
Identity Core 2.x - Use ElCamino.AspNetCore.Identity.DocumentDB, sample Mvc app: https://github.com/dlmelendez/identitycosmosdb/tree/master/sample/samplecore3.mvc
10
11
11
-
Identity Core 1.x - Use ElCamino.AspNetCore.Identity.DocumentDB, sample Mvc app: https://github.com/dlmelendez/identitycoredocumentdb/tree/master/sample/samplecore.mvc
12
+
Identity Core 1.x - Use ElCamino.AspNetCore.Identity.DocumentDB, sample Mvc app: https://github.com/dlmelendez/identitycosmosdb/tree/master/sample/samplecore.mvc
12
13
13
-
## Quick Start for Identity Core 2
14
+
## Breaking changes to v3.0
15
+
### Naming changes from DocumentDB to CosmosDB
16
+
- Namespace change from **ElCamino.AspNetCore.Identity.DocumentDB** to **ElCamino.AspNetCore.Identity.CosmosDB**
17
+
- Any class, method or configuration key has been changed from **DocumentDB** to **CosmosDB**
18
+
### Data Migration
19
+
For existing data using ElCamino.AspNetCore.Identity.DocumentDB < v3.0, you should create a new container for the v3.0 configuration and then copy documents to the new container adding "/partitionKey" for the partition key. The partition key should be the last 4 characters of the id field.
Download the CosmosDB [emulator](https://docs.microsoft.com/en-us/azure/cosmos-db/local-emulator) or setup an [instance in Azure](https://docs.microsoft.com/en-us/azure/cosmos-db/create-documentdb-dotnet).
16
49
@@ -19,85 +52,93 @@ Remove the NuGet packages EntityFramework and Microsoft.AspNetCore.Identity.Enti
Remove all using statements referencing EntityFramework.
38
64
Delete the /Data/Migrations directory and all files in it.
39
65
40
-
##### Changes to [/Models/ApplicationUser.cs](https://github.com/dlmelendez/identitycoredocumentdb/blob/master/sample/samplecore2.mvc/Models/ApplicationUser.cs)
66
+
##### Changes to [/areas/identity/**.cs](https://github.com/dlmelendez/identitycosmosdb/blob/master/sample/samplecore3.mvc/Areas/Identity/)
##### Changes to [/Data/ApplicationDbContext.cs](https://github.com/dlmelendez/identitycoredocumentdb/blob/master/sample/samplecore2.mvc/Data/ApplicationDbContext.cs)
74
+
75
+
##### Changes to [/*****/****/_ViewImports.cshtml](https://github.com/dlmelendez/identitycosmosdb/blob/master/sample/samplecore3.mvc/)
76
+
77
+
Add this using to override the IdentityUser class in the Microsoft.AspNetCore.Identity namespace.
##### Changes to [/Data/ApplicationDbContext.cs](https://github.com/dlmelendez/identitycosmosdb/blob/master/sample/samplecore3.mvc/Data/ApplicationDbContext.cs)
0 commit comments