I want a list of tables that exists on sqlite database, and well I've got a simple query that looks like:
SELECT name from sqlite_master WHERE type='table';
But now I need to execute this using entity framework core, so I am binding this to DataContext, and here is where I am stuck as data context contains all representation of tables as db set but not sqlite system tables, I tried using query on exposed database facade but it is not returning any pother values then number of rows it has affected, something like:
using (var ctx = new DataContext())
{
var query = @"SELECT name from sqlite_master WHERE type='table';"
string[] result = ctx.Database.ExecuteSqlCommand(query);
return result;
}
Is there any other way i can that information.