Estou tentando salvar em no banco mais quando tento salvar recebo o erro: SQLite.SQLiteException has been thrown no such table:Refeicao,
insira seu código aqui
public class SQLite_android :ISQLite
{
public SQLite_android()
{
}
public SQLiteConnection GetConnection()
{
string applicationFolderPath = System.IO.Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), "Refeicoes");
// Create the folder path.
System.IO.Directory.CreateDirectory(applicationFolderPath);
string databaseFileName = System.IO.Path.Combine(applicationFolderPath, "Refeicoes.db");
return new SQLiteConnection(databaseFileName);
}
}
}
//Refeição DAO
using SQLite;
namespace AluraGustavo
{
public class RefeicaoDAO
{
private SQLiteConnection conection;
public RefeicaoDAO(SQLiteConnection con)
{
conection = con;
}
public void Save( Refeicao refeicao)
{
conection.Insert(refeicao);
}
}
}
precisando de um help