Intro to LiteDB for .NET Developers. Sample WebApp Included

This article will look closely at LiteDB, a .NET NoSQL Document Store in a single data file. We will discover the advantages of LiteDB and why it is a viable candidate for your next project. We will also explore the differences between a NoSQL and a classical SQL database and what this has to do with the reminiscent SQL CE or the more modern SQLite database. Lastly, we will develop a sample .NET WebApp using Uno Platform and LiteDB. .NET WebApp Sample LiteDB LiteDB is a document store that gets saved into a single file. That means that all your data resides in a single file. If you remember the good old times’ citation needed, you might remember SQL Server Compact, a single file database based on the SQL Server. A modern version would be SQLite, which is also a single-file database. All of them are serverless, meaning you don’t need to install anything additional, which runs in a background thread and does all the work. This simplicity enables a wide variety of scenarios (especially for rapid prototyping). Some more points, which are listed on their GitHub page: Serverless NoSQL Document Store Simple API, similar to MongoDB 100% C# code for .NET 4.5 / NETStandard 1.3/2.0 in a single DLL (less than 450kb) Thread-safe