From afd03088492a6e4ec9d9545a52673d19768c2af8 Mon Sep 17 00:00:00 2001 From: Alexandre SPIESER Date: Wed, 22 Apr 2020 19:16:57 +0100 Subject: [PATCH] Update README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index d6bb9a9..f98d1d4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # MongoDbGenericRepository + An example of generic repository implementation using the MongoDB C# Sharp 2.0 driver (async) Now available as a nuget package: @@ -8,6 +9,12 @@ Covered by 400+ integration tests and counting. The MongoDbGenericRepository is also used in [AspNetCore.Identity.MongoDbCore](https://github.com/alexandre-spieser/AspNetCore.Identity.MongoDbCore). +This package sets the MongoDefaults.GuidRepresentation to `MongoDB.Bson.GuidRepresentation.Standard` by default, instead of the default driver setting of `MongoDB.Bson.GuidRepresentation.CSharpLegacy`. + +You can override this behaviour to enforce legacy behaviour in your app Startup routing like so : + +`MongoDbContext.SetGuidRepresentation(MongoDB.Bson.GuidRepresentation.CSharpLegacy)`. More info [here](https://github.com/alexandre-spieser/mongodb-generic-repository/issues/7). + # Usage examples This repository is meant to be inherited from.