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

SQLite

$
0
0

Hi there

This one creates a table with 2 columns (I'm using the SQLite.Net-PCL Package).

[Table ("Table")]
public class Table
{
    [PrimaryKey, AutoIncrement]
    public int Id { get; set; }

    public DateTime Created { get; set; }
}

But the following one creates only one column. I guess it's because "private" access modifier.

[Table ("Table")]
public class Table
{
    [PrimaryKey, AutoIncrement]
    public int Id { get; set; }

    private DateTime created;
}

But how can I do this anyway? I need this. Is there an official documentation?

Best regards,

Zak


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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