From 8beeaf463d9f8a367736f40f837e41e4fd157930 Mon Sep 17 00:00:00 2001 From: Alexandre SPIESER Date: Wed, 1 Nov 2017 09:34:21 +0000 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 36f3b99..3f09806 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ public class ApplicationRole : MongoIdentityRole } } ``` -The `Id` field is automatically set at instantiation, this also applies to users inheriting from `MongoIdentityUser`, where a random integer is assigned to the `Id`. It is however not advised to rely on such random mechanism to set the primary key of your document. Using documents inheriting from `MongoIdentityRole` and `MongoIdentityUser` is recommended. +The `Id` field is automatically set at instantiation, this also applies to users inheriting from `MongoIdentityUser`, where a random integer is assigned to the `Id`. It is however not advised to rely on such random mechanism to set the primary key of your document. Using documents inheriting from `MongoIdentityRole` and `MongoIdentityUser`, which both use the `Guid` type for primary keys, is recommended. To add the stores, you can use the `IdentityBuilder` extension like so: