I am working with VS 2017 and XAMARIN/Android and SQLite. In "debug" mode there is no problem. When i try to run the android "release" mode on the smart phone i become following error:
Unhandled Exception: System.Exception: Cannot create a table without columns (does 'SolarmonAndroidApp.Models.TicketPageModels.TicketType' have public properties?)
How can i properly configure the app to install the SQLite_DB on Android mobile phone.
Model:
using SQLite;
using System;
using System.Collections.Generic;
using System.Text;
namespace SolarmonAndroidApp.Models.TicketPageModels
{
public class TicketType
{
[PrimaryKey, AutoIncrement]
public int Id { get; set; }
public int _Id { get; set; }
public string Name { get; set; }
public bool IsActive { get; set; }
public bool IsFixed { get; set; }
}
}
Calls:
_sql.CreateTable<TicketAction>();
_sql.CreateTable<TicketType>();
_sql.CreateTables<Park, Section, Ticket, User>();
_sql.CreateTables<Row, Inverter, Number, Pool, Attachment>();
_sql.CreateTable<CatchLog>();
_sql.CreateTable<AppSettings>();
_sql.CreateTables<TicketChecklist, TicketCheckpoint, SubTicket>();