MongoRepository icon indicating copy to clipboard operation
MongoRepository copied to clipboard

An easy-to-configure, powerful repository for MongoDB with support for multi-tenancy

Results 8 MongoRepository issues
Sort by recently updated
recently updated
newest added

Hi John, is there an example on how to use UpdateOrInsertOneAsync ? thanks

I'm facing an issue when the primary key is other than ObjectId. We're using `Guid` strings as `Id` field. When using `ReplaceOneAsync` I'm getting the error message `"'760a812e-7bd1-42f2-9892-75486e809655' is not...

Bumps [MongoDB.Driver](https://github.com/mongodb/mongo-csharp-driver) from 2.11.4 to 2.19.0. Release notes Sourced from MongoDB.Driver's releases. NET Driver Version 2.19.0 Release Notes .NET Driver Version 2.19.0 Release Notes This is the general availability release...

dependencies

```cs repo.UpdateOneAsync( filter: show => show.Id == showId, update: upd => upd .Set(Builders.ArrayFiltersReference .SelectArray(x => x.Seasons, "a") .ThenSelectArray("b", x => x.Episodes), DateTime.Today), options: new UpdateOptions { ArrayFilters = Builders.ArrayFilters .AddFilter("a",...

enhancement

Everything seems to behave the same way without calling `MapAlongWithSubclassesInSameAssembly`. Maybe something has changed in the driver since this was first introduced.

enhancement

``` 2020-01-20 19:10:09 ERR [] An unhandled exception has occurred while executing the request. {"EventId": {"Id": 1, "Name": "UnhandledException"}, "SourceContext": "Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware", "RequestId": "0HLSTO070TBGB:00000001", "RequestPath": "/api/bulk-create-items", "SpanId": "|d221874-42232fcff5fd61c6.", "TraceId": "d221874-42232fcff5fd61c6", "ParentId":...

bug

```csharp var (obj, version) = await GetVersionedAsync(id); if (!(await TryReplaceVersionedAsync(id, obj, version))) { // Concurrency error } ```

enhancement