Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

praeclarum sqlite-net Table().Where(Expression) gives exception

$
0
0

Hey,

I am using praeclarum sqlite-net library, when I am using :

var item = sQLiteConnection.Table<MyClass>().Where(e => (e.Id == CurrentId) && (e.name == Currentname));

It gives exception: Member access failed to compile expression

CurrentId and Currentname both have a value.
The table does exist with its columns.

MyClass is:

`public class MyClass
{

    [Ignore]
    public List<ClassB> Bs{ get; set; }


    public string BsAsJson { get; set; }


    public string Datestamp { get; set; }

    [PrimaryKey]

    public string ClassId { get; set; }


    public string SomeId { get; set; }


    public string name { get; set; }



    public MyClass ()
    {

    }

    public MyClass (string datestamp, string id)
    {
        Bs= new List<ClassB>();

        Datestamp = datestamp;

        ClassId = id;

        name= "Bagera";

        SomeId= "SomeValue";

    }

}`

Viewing all articles
Browse latest Browse all 204402

Trending Articles



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