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);
NMemory is a lightweight non-persistent in-memory relational database engine that is purely written in C# and can be hosted by .NET applications.
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).
Index, Foreign Key Relations, Transaction Handling, Stored Procedure, Query Optimization and many more.
Yes, we support .NET Core 2+
Find out how to dramatically improve EF performances with
Entity Framework Extensions
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!