Questions tagged [litedb]

Use this tag for questions about LiteDB, which is a a free, open-source, embedded NoSQL database for .NET available via nuget or direct download.

LiteDB is a free, open-source, embedded NoSQL database for .NET inspired by MongoDB. Because it is a serverless document store, LiteDB can be "installed" via NuGet or by copying a dll into your project's bin folder.

Resources

Related Tags

183 questions
1
vote
1 answer

How do I access LiteDB with Java

Are there instructions on how to implement LiteDB with Java or another language for accessing a database online? I have written an application in C# that uses LiteDB, but now I am trying to have it accessible by web and local intranet. So is Java…
ACopeLan
  • 154
  • 1
  • 8
1
vote
0 answers

Deploying LiteDB

I am in the process of building a VS2013 setup project to deploy a Winforms application that uses a LiteDB database to a several Windows 7 Workstations. Different users can login to the workstation. The application needs R/W access to the database.…
JHH
  • 55
  • 1
  • 9
1
vote
1 answer

How to do Cascading Include in LiteDB

here is example on how to store cross-referenced entities in LiteDB. LiteDB stores the cross-referenced entities perfectly fine, but problem comes when I am trying to find/load entities back. My goal is NOT ONLY the requested entity but also…
Evgeny
  • 305
  • 3
  • 16
1
vote
1 answer

Get LiteDb to inform us when a property cannot be set

We are using LiteDb to store objects. An issue we keep having is that people are creating objects containing properties with only public getters. This means this property is not populated when an object is restored from the database. LiteDb in its…
Techlead
  • 172
  • 1
  • 10
1
vote
1 answer

Avoid full table scan in LiteDB?

See code: var lines = new List(){ new PosLine{Name="John", Address="dummy1", Tstamp=DateTime.Now}, new PosLine{Name="Jane", Address="dummy2", Tstamp=DateTime.Now} }; using(var db = new LiteDatabase(@"test.db")) { var posLines =…
neolei
  • 1,798
  • 2
  • 18
  • 32
1
vote
2 answers

How to use DbRef in LiteDB

How to use DbRef in LiteDB. I have classes for both Customer and Job. I want the Customer to store a list of jobs that the Customer has. So in the Customer class, I need to have aDbRef Jobs from what I understand. I have several issues. First,…
Liron Harel
  • 10,819
  • 26
  • 118
  • 217
0
votes
0 answers

Should I make a mutex (or lock) for writing to LiteDatabase?

I am writing considerably many data to the LiteDatabase. Fortunately there is only one UserCollection in the database. I am not sure there would be a conflict when there are several write accesses at the same time. Practically, there were some…
James
  • 1
  • 2
0
votes
0 answers

ulong is not be stored correctly in LiteDatabse

I am now making a MMO game using Unity. Also I am using the LiteDB to store users data. UserModel looks like this. Everything is working correctly except for the mUserOwnerClientId. The variable type is ulong and I tried to store…
James
  • 1
  • 2
0
votes
0 answers

LiteDB Deadlocks - I may be using LiteDB wrong

So I am writing a server in C#. It has a LiteDB database to store messages in. Every time the server receives a message, it stores the message in the DB, and sends a copy to the proper destination. Since LiteDB is supposed to be thread-safe, I don't…
Ungoliant
  • 133
  • 2
  • 14
0
votes
0 answers

Deadlocks in a server that uses LiteDB

So I am writing a server in C#. It has a LiteDB database to store messages in. When I start up the server, I also launch an async task to delete expired messages from the DB (messages that are older than some predefined threshold). Lets call this…
Ungoliant
  • 133
  • 2
  • 14
0
votes
1 answer

Store Data of type SkiaSharp in LiteDB - System.InvalidCastException: Null object cannot be converted to a value type

I am using SkiaSharp to develop a small note app in .net Maui. I want to store the data in LiteDB, which works. However, when loading the data from the database, I get the following error message. System.InvalidCastException: Null object cannot be…
0
votes
0 answers

AsyncReaderWriterLock for a server that uses LiteDB

So I am writing a server in C#. It has a LiteDB database to store messages in. When I start up the server, I also launch an async task to delete expired messages from the DB (messages that are older than some predefined threshold). Lets call this…
Ungoliant
  • 133
  • 2
  • 14
0
votes
0 answers

LiteDB - Need access to LiteDB Studio; not able to build Git solution

Can someone please show me where I can get a Zip of the latest compiled build for LiteDB Studio? I'm asking because I'm unable to build the Git solution. I used Git to download over both the LiteDB and LiteDB.Studio projects, attempted to build the…
open7
  • 43
  • 7
0
votes
0 answers

LiteDatabase.Execute parameter syntax

I could not find any docs on LiteDatabase.Execute method. For example: // UPDATE/SELECT works with @N db.execute("select value from settings where name = @0", name); // INSERT fails with @N db.Execute("insert into settings values { name: @0, value:…
Neo
  • 5
  • 5
0
votes
0 answers

LiteDB - Change BSON Type of a collection property

Is it possible to either change the BSON Type of a collection property or delete a collection property?
open7
  • 43
  • 7