NMemory


Downloaded more than
0
times !
var members = this.Tables.Create<Member, int>(x => x.Id);
var groups = base.Tables.Create<Group, int>(g => g.Id);

this.Members = members;
this.Groups = groups;

RelationOptions options = new RelationOptions(
 cascadedDeletion: true);

var peopleGroupIdIndex = members.CreateIndex(
 new RedBlackTreeIndexFactory(),
 p => p.GroupId);

this.Tables.CreateRelation(
 groups.PrimaryKeyIndex,
 peopleGroupIdIndex,
 x =>  x ?? -1,
 x => x,
 options);

What&#39;s NMemory?

What's NMemory?

NMemory is a lightweight non-persistent in-memory relational database engine that is purely written in C# and can be hosted by .NET applications.

When should I use NMemory?

When should I use NMemory?

Whenever you need to create a fake or mock database. So you can test your Business Logic Layer (BLL) without worrying about your Data Access Layer (DAL).

Which Database features are supported?

Which Database features are supported?

Index, Foreign Key Relations, Transaction Handling, Stored Procedure, Query Optimization and many more.

Do your support .NET Core?

Do your support .NET Core?

Not yet but we plan to support it.

Need more performance?

Need more performance?

Find out how to dramatically improve EF performances with
Entity Framework Extensions

Where can I find examples?

Where can I find examples?

Online examples are now available!

Online Examples

We need your help to support this NMemory Database!

NMemory Database is FREE and always will be.

However, last year alone, we spent over 3000 hours maintaining our free projects! We need resources to keep developing our open-source projects.

We highly appreciate any contribution!


> 3,000+ Requests answered per year
> $100,000 USD investment per year
> 500 Commits per year
> 100 Releases per year