Closed IrfanKureshi8792 closed 3 years ago
I'm wondering the same thing.
"You’re done! Now you can get access to your database using sqlite-net. ;P"
Except there's no explanation on how to do that? Maybe I'm just too much of a noob.
HI @IrfanKureshi8792 and @georgetye, please take a look at sqlite-net wiki for more information on how to use it.
You can use pure sql:
string query = $"SELECT * FROM records";
var results = conn.Query<Record>(query);
or linq:
var results = conn.Table<Record>().Where(t => t.Age > 40).OrderByDescending(t => t.Age).ToList();
See the Synchronouse API docs.
Ah ok perfect, thanks so much!
how to implement select * from where EmployeeName="ABC" AND Designation="HR" ; in Sqlite4unity