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

The use of SQLite component. Problem on viewing saved items on the screen

$
0
0

I created my first ToDo app by adding SQLite component but having problems about viewing saved tasks on the screen. I am not sure about creating database file correctly. Here I attached my cs files. I think i messed up here : `

public class TaskViewModel
{
    SQLiteConnection conn ;

    public TaskViewModel ()
    {
        string folder = Environment.GetFolderPath (Environment.SpecialFolder.Personal); 
        conn = new SQLiteConnection (System.IO.Path.Combine (folder, "tasks.db"));
        conn.CreateTable<Task> ();
    }`

Viewing all articles
Browse latest Browse all 204402

Trending Articles



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