Ao executar o aplicativo retornar o erro.
Arquivo do erro: RefeicaoDAO.cs
public class RefeicaoDAO
{
private SQLiteConnection conexao;
public RefeicaoDAO(SQLiteConnection con)
{
conexao = con;
conexao.CreateTable<Refeicao>();
}
public void Salvar(Refeicao refeicao)
{
conexao.Insert(refeicao);
}
public ObservableCollection<Refeicao> GetAll()
{
return new ObservableCollection<Refeicao>(conexao.Table<Refeicao>());
}
}
Linha do erro: conexao.CreateTable();
Exception:
An exception of type 'System.NotSupportedException' occurred in SQLite-net.ni.DLL but was not handled in user code
Additional information: Don't know about Xamarin.Forms.View
Stacktrace
at SQLite.Orm.SqlType(Column p, Boolean storeDateTimeAsTicks)
at SQLite.Orm.SqlDecl(Column p, Boolean storeDateTimeAsTicks)
at SQLite.SQLiteConnection.<CreateTable>m__0(Column p)
at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at SQLite.SQLiteConnection.CreateTable(Type ty, CreateFlags createFlags)
at SQLite.SQLiteConnection.CreateTable[T](CreateFlags createFlags)
at rabbiNutricao.Data.RefeicaoDAO..ctor(SQLiteConnection con)
at rabbiNutricao.HomeTabbedPage..ctor()
at rabbiNutricao.App..ctor()
at rabbiNutricao.WinPhone.MainPage..ctor()
at rabbiNutricao.WinPhone.rabbiNutricao_WinPhone_XamlTypeInfo.XamlTypeInfoProvider.Activate_4_MainPage()
at rabbiNutricao.WinPhone.rabbiNutricao_WinPhone_XamlTypeInfo.XamlUserType.ActivateInstance()