Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Don't know about System.Collections.Generic.List

$
0
0

Hi,

I have a class structure as

using SQLite;
using System;
using System.Collections.Generic;
using System.Text;
using SQLite.Net.Attributes;

namespace Sample.BLL.Models
{
public class Buyer
{
private int _Id;
[PrimaryKey]
public int Id
{
get { return _Id; }
set { _Id = value; }
}

    private string _Name;
    [MaxLength(250)]
    public string Name
    {
        get { return _Name; }
        set { _Name = value; }
    }

    [Ignore]
    public List<int> ListIds { get; set; }

}

}

When I try to create table using below code

await dbConn.CreateTableAsync();

getting an error as

System.NotSupportedException: Don't know about System.Collections.Generic.List`1[System.Int32] at SQLite.Orm.SqlType (SQLite.Column p, Boolean storeDateTimeAsTicks) [0x00000]

I am using sqlcipher in my project. Please help me to resolve this issue.

Thanks
Ranjith


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>