Answer the question
In order to leave comments, you need to log in
Selecting multiple data in LiteDB database, C#?
Good day to all! In my project, I use a database like LiteDB, everything seems to be working fine, but I can’t figure out one thing! How to make a selection from this database by several values? I know how to filter data by only one value, it's done like this:
using (var db = new LiteDatabase(@"MyData.db"))
{
var col = db.GetCollection<User>("User");
var result = col.Find(x => x.Login.StartsWith(LoginTB.Text));
}
Answer the question
In order to leave comments, you need to log in
var result = col.Find(x => x.Login.StartsWith(LoginTB.Text));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question