meerkat 3.1.0
dotnet add package meerkat --version 3.1.0
NuGet\Install-Package meerkat -Version 3.1.0
<PackageReference Include="meerkat" Version="3.1.0" />
<PackageVersion Include="meerkat" Version="3.1.0" />
<PackageReference Include="meerkat" />
paket add meerkat --version 3.1.0
#r "nuget: meerkat, 3.1.0"
#:package meerkat@3.1.0
#addin nuget:?package=meerkat&version=3.1.0
#tool nuget:?package=meerkat&version=3.1.0
Meerkat
Meerkat is an ODM (Object Document Mapper) for MongoDB in .NET. It wraps the official MongoDB driver and simplifies common data access patterns, modelling, querying, persistence, and indexing with a clean, strongly-typed API.
Installation
.NET CLI
dotnet add package meerkat
Package Manager Console
Install-Package meerkat
.csproj
<PackageReference Include="meerkat" Version="3.0.0" />
Quickstart
Initialise connection at startup:
using meerkat;
Meerkat.Connect("mongodb://user:password@host:port/database-name");
Define a model:
using meerkat;
using meerkat.Attributes;
using MongoDB.Bson;
[Collection(TrackTimestamps = true)]
public class Student : Schema<ObjectId>
{
public string FirstName { get; set; } = string.Empty;
public string LastName { get; set; } = string.Empty;
public Student()
{
Id = ObjectId.GenerateNewId();
}
}
Save and query:
// Save (upsert)
var student = new Student { FirstName = "Ada", LastName = "Lovelace" };
await student.SaveAsync();
// Find by ID
var found = await Meerkat.FindByIdAsync<Student, ObjectId>(student.Id);
Documentation
Comprehensive guides, API examples, and architecture documentation are available at https://bolorundurowb.github.io/meerkat/:
- Defining Models — Schema base class, ID types, collection names, timestamps, and soft delete.
- Querying — Predicate queries, LINQ queries, counting, and existence checks.
- Persistence & Transactions — Save, SaveAll, removals, soft delete, and ambient multi-document transactions.
- Atomic Updates — Fluent update builders and atomic numeric increment/decrement helpers.
- Indexing — Single-field, unique, compound, TTL, geospatial indexes, and startup index verification.
- Transforms & Hooks — String casing transforms and lifecycle hooks.
- Architecture — Design goals, runtime model, and request flows.
- Breaking Changes — Release notes and upgrade guides.
Contributing
Issues and pull requests are welcome at github.com/bolorundurowb/meerkat.
Licence
Meerkat is open source software licensed under the MIT Licence.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- ciu-parser (>= 3.2.0)
- MongoDB.Driver (>= 3.12.0)
- NodaTime (>= 3.3.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.1.0 | 82 | 12/3/2026 |
| 3.0.0 | 221 | 9/20/2026 |
| 2.1.1 | 316 | 9/6/2026 |
| 2.1.0 | 276 | 6/1/2026 |
| 2.0.2 | 246 | 5/17/2026 |
| 2.0.1 | 298 | 2/26/2026 |
| 2.0.0 | 490 | 2/26/2025 |
| 1.1.0 | 3,043 | 2/2/2025 |
| 1.0.19 | 412 | 2/2/2025 |
| 1.0.18 | 453 | 8/17/2024 |
| 1.0.17 | 511 | 11/5/2023 |
| 1.0.16 | 344 | 11/5/2023 |
| 1.0.13 | 5,862 | 6/8/2022 |
| 1.0.12 | 839 | 2/4/2022 |
| 1.0.11 | 739 | 2/4/2022 |
| 1.0.10 | 607 | 1/3/2022 |
| 1.0.9 | 661 | 10/27/2021 |
| 1.0.8 | 622 | 10/27/2021 |
3.1.0
- Fix upgrades from 2.x for models with their own DeletedAt field by preserving their BSON mapping when Meerkat soft delete is disabled.
- Reuse compatible nullable UTC BSON date mappings when soft delete is enabled. Report adoption through System.Diagnostics.Trace and reject incompatible mappings with a serialization error.
- Preserve the DeletedAt BSON date format for documents soft-deleted by Meerkat 3.0.0.