CategoryMongoDB

Unit testing MongoDB in C# part 3: the database factories

Welcome to the third article of the series! Last time I was talking about the database context and at how I injected a Factory to create the repositories. Of course we could have injected every single repository in the cTor, but this way adding a new collection to the database would force too many changes. Injecting just the […]

Categories: .NET, MongoDB, Programming, Software Architecture, Testing

Case-insensitive queries on MongoDB

Short version: you can’t. Long version: well…. you can’t 😀 Or at least you can’t NOW, based on what is stated here : https://jira.mongodb.org/browse/SERVER-90 . If you really need case-insensitive queries one option is to create another field with a lowercase representation of the text, put an index on it and run your queries on this field […]

Categories: MongoDB, Programming

© 2019 Davide Guida

Theme by Anders NorenUp ↑