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"))
{
var EmployeeCollection = db.GetCollection<Employee>("employeesName");
var Finder = EmployeeCollection.Find(x => x.Name_Last.StartsWith("L")).ToList();
label_LastName.Text = Finder.ToString();
}
}
It operates correctly, however it returns not a string of Last Names, but the object name (System.Collection.Generic.List'[LITEDB.Form1+Employee]). How do I get the 'Find' command to display strings? Also, Is there somewhere that shows the procedure required for the rest of the 'Find' commands (FindOne, FindAll, FindbyId) to display query results in a string format?