NDatabase

discontinued

by Jacek Spólnik · since 2012

Embedded .NET object database ported from NeoDatis ODB: store plain C# objects in one file. Abandoned.

objectembedded libraryopen source (copyleft)legacy

discontinued. Last release 3.8.0 (May 2013); CodePlex is gone and ndatabase.net now hosts unrelated content. Use LiteDB or SQLite.

Overview

NDatabase was an embedded object database for .NET by Polish developer Jacek Spólnik, derived from the NeoDatis ODB code base. It persisted ordinary C# objects without mapping files, attributes or base classes, offered ACID transactions with automatic recovery on the next open, indexes and type-safe queries, and kept everything in a single database file opened through OdbFactory. Releases ran on CodePlex and NuGet from 2012 to 3.8.0 in May 2013; CodePlex has shut down and the old ndatabase.net domain now serves unrelated content, though the NuGet packages remain. For new .NET work, LiteDB or SQLite with an ORM are the practical choices.

Strengths & trade-offs

Strengths

  • +Persists plain C# objects with no mapping or attributes
  • +ACID transactions with automatic recovery on restart
  • +Single-file embedded deployment

Trade-offs

  • −Abandoned since 2013 and targets old .NET Framework versions
  • −Original site and CodePlex source hosting are gone

Great for

  • +Maintaining old .NET desktop apps that already use it
  • +Studying a compact embedded object-store design in C#

Think twice for

  • −New .NET or .NET Core projects
  • −Multi-user server workloads

Capabilities

Native or official first-party support · 3 of 25 tracked

✓Transactions
✓Secondary indexes
✓Durable persistence
–Joins
–Full-text search
–Vector search
–Geospatial
–JSON
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–In-memory
–Compression
–Encryption at rest
–Role-based access
–Time travel
–Branching
–Online schema changes
–Streaming ingest
–Offline sync
–Runs in WebAssembly

Scale & consistency

Comfortable data size
Small · ≤ 100 GB
Horizontal scaling
None
Multi-region
No
Transactions
Full ACID
Consistency
Strong
Schema
Flexible
Architecture
Embedded
Query languages
C# query API

Deployment

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

Ecosystem

apis & protocols.NET API
client languagesC#

Alternatives to NDatabase

Compare all→
LiteDBDocument10.8

Serverless single-file NoSQL document database for .NET, in the spirit of SQLite.

ndatabase vs litedb →
SQLiteRelational75.5

The in-process SQL engine that ships in every phone, browser and OS: one file, zero servers.

ndatabase vs sqlite →
Realm (Atlas Device SDK)Object25.2

Object-oriented mobile database whose MongoDB sync service is gone; the local engine survives as open source.

ndatabase vs realm →
NeoDatis ODBObject0.0

Lightweight embedded object database for Java (and .NET) that stores plain objects in one file; dormant.

ndatabase vs neodatis-odb →
db4oObject4.7

Pioneering embeddable object database for Java and .NET, discontinued by Actian in 2014.

ndatabase vs db4o →
ObjectDBObject9.3

Commercial object database for Java that implements JPA and JDO natively, with no ORM layer.

ndatabase vs objectdb →

NDatabase FAQ

What is NDatabase?

NDatabase is an object database by Jacek Spólnik, first released in 2012. NDatabase was an embedded object database for .NET by Polish developer Jacek Spólnik, derived from the NeoDatis ODB code base. It persisted ordinary C# objects without mapping files, attributes or base classes, offered ACID transactions with automatic recovery on the next open, indexes and type-safe queries, and kept everything in a single database file opened through OdbFactory. Releases ran on CodePlex and NuGet from 2012 to 3.8.0 in May 2013; CodePlex has shut down and the old ndatabase.net domain now serves unrelated content, though the NuGet packages remain. For new .NET work, LiteDB or SQLite with an ORM are the practical choices.

Is NDatabase open source?

Yes. NDatabase is open source. License: GNU LGPL.

Does NDatabase support ACID transactions?

Yes. NDatabase supports full ACID transactions, with strong consistency.

Does NDatabase scale horizontally?

NDatabase does not scale horizontally; it runs on a single node, so you scale it up rather than out. It is comfortable at small scale (≤ 100 GB).

How can I run NDatabase?

You can self-host it and embed it in your application.

What is NDatabase best for?

NDatabase is a strong fit for maintaining old .NET desktop apps that already use it and studying a compact embedded object-store design in C#. Think twice for new .NET or .NET Core projects.

What are the best alternatives to NDatabase?

Common alternatives to NDatabase include LiteDB, SQLite, Realm (Atlas Device SDK), NeoDatis ODB and db4o. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is NDatabase still maintained?

NDatabase is discontinued. Last release 3.8.0 (May 2013); CodePlex is gone and ndatabase.net now hosts unrelated content. Use LiteDB or SQLite.

How popular is NDatabase?

NDatabase has little measurable public adoption today, so it ranks near the bottom of the WhichDB Score.