protected static IList <T> GetAll()
        {
            return(DatabaseUtils.DoAction <IList <T>, T>((SQLiteConnection connection) =>
            {
                var t = connection.Table <T>();
                var rv = new List <T>();
                foreach (var q in t)
                {
                    rv.Add(q);
                }

                return rv;
            }));
        }
 public virtual int Delete()
 {
     return(DatabaseUtils.DoAction <int, T>((SQLiteConnection connection) => connection.Delete(this)));
 }
 public int Save()
 {
     return(DatabaseUtils.DoAction <int, T>((SQLiteConnection connection) => connection.InsertOrReplace(this)));
 }