diff --git a/README.md b/README.md index 76da538..f7d2be5 100644 --- a/README.md +++ b/README.md @@ -40,8 +40,8 @@ Here is an example of repository usage, where the TestRepository is implementing } } ``` -If all your documents have the same type of key, you can use the more specific `BaseMongoRepository` where `TKey` is the type of the `Id` of your documents. -``` +If all your documents have the same type of `Id`, you can use the more specific `BaseMongoRepository` where `TKey` is the type of the `Id` of your documents. +```csharp public class TestTKeyRepository : BaseMongoRepository, ITestRepository where TKey : IEquatable { const string connectionString = "mongodb://localhost:27017/MongoDbTests";