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
0
votes
1 answer

Any ways to detect changes in LiteDb?

Is there any ways to detect differences between model and LiteDb? For example. [Table('table')] public class Table { public int Id { get; set; } public string Name { get; set; } } And liteDb has table with the same columns. I wanna add a new…
Atlantis
  • 725
  • 7
  • 26
0
votes
1 answer

LiteoDB and var List inserts C#

I'm trying to use LiteDB, I have the following: var list2 = new List(); I've been looking at the LiteDB examples which is the following: // Get customer collection var col = db.GetCollection("customers"); var customer = new…
losrob
  • 115
  • 1
  • 7
0
votes
0 answers

Populating recycle view from Task.Run()

I'm using Xamarin Android, and in my app I have a recycle view that gets populated from LiteDB. Now, in OnCreateView, in my fragment that hold the recycle view, I set the adapters, and call SetData(), to populate my list. It looks like…
0
votes
1 answer

store multiple value on enter with 1 textbox?

In C# with LiteDB i working on a little project, I'm searching for a way to add entry to a datagridview with 5 columns + 1 Textbox. On datagridView, i have a colID so if i enter on textbox dev5 dgv select this row and i can write on their row like…
Kate
  • 320
  • 1
  • 6
  • 19
0
votes
0 answers

With LiteDB and C# how do you display the results of Find Commands to a Label?

I have the following query code for LiteDB that I wrote based upon the website examples: private void QueryFunc() { using (var db = new LiteDatabase(@"C:\NewTemp\MyData.db")) { …
MBasic
  • 23
  • 6
0
votes
0 answers

ASP.NET : Method not found when calling for parent class

basically I'm getting an exception while im performing this: var userDb = new UserData(); userDb.InsertData(DbName); My InsertData function: var userRepo = new UserRepository(); var users = new List(); using (var db =…
Qiang
  • 3
  • 1
0
votes
1 answer

Simple reference not working in LiteDB (C#)

I'm trying to create a simple reference, but I'm not getting it. A "customers" collection is created successfully, but the "ordes" collection is not created. What is wrong with this code? public static void Main() { var mapper =…
0
votes
1 answer

String case sensitive in LiteDB query

In various environment, the user name is case insensitive. We query admin equal to ADMIN. I have searched LiteDB called CompareTo to compare two objects that I can't find a point to make string compared as case insensitive. The code in…
Aimeast
  • 1,609
  • 14
  • 29
0
votes
1 answer

litedb see results from query

I would like to know how to see the results from a database in text format from LiteDB in the console or a multi line text box when the form loads. This is what I have so far, but it doesn't return the information. private void…
ACopeLan
  • 154
  • 1
  • 8
0
votes
1 answer

LiteDB incldue BsonDocument without mapping

Is there an any way to include DbRef without mapping? as like, var chats = Database.db.GetCollection("Chats").Include(x=>x.User); to var chats = db.GetCollection("Chats").Include(x=>x["User"]);
0
votes
1 answer

LiteDB not returning any data when executing queries

I have tried finding an answer everywhere but I assume I am doing something wrong but can't figure out what. I have a struct called Genre. Genre has an id and a name. public struct Genre { public int Id { get; set; } public string…
Roel
  • 754
  • 3
  • 13
  • 30
0
votes
1 answer

Exception thrown: 'System.IO.FileNotFoundException' in mscorlib.dll ("Could not find file 'cache-journal.db'.")

Working with LiteDB, the initial construction of the database has no real issue, however on subsequent loads, it is trying to find a file which does not exist. According to their documentation, journaling is something that is on by default, however…
Kraang Prime
  • 9,981
  • 10
  • 58
  • 124
0
votes
1 answer

An exe changes CMD font

I have custom fonts for CMD. When I run LiteDB Shell it changes my font even after I leave the shell. How do I stop this from happening?
javaNinja
  • 521
  • 1
  • 5
  • 13
0
votes
1 answer

LiteDB.Shell cannot open my database file

I have database file called db.MyDb and I was able to open it before and also insert some database. Currently this file has important data and due to some file uploaded to this database wrongly so I need to remove that file, but I cannot open the…
Saif
  • 2,611
  • 3
  • 17
  • 37
-1
votes
2 answers

Is there any extension to make LiteDB work in .NET 6?

Is there any extension, tool, package, or whatever that can make LiteDB work in .NET 6? Or do I absolutely have to use a different DB? I had a project in .NET 4.6.1 that uses LiteDB and I'm asked to create a "Version 2" of that project by using .NET…
Asyraf Arifin
  • 2,445
  • 2
  • 7
  • 11
1 2 3
12
13