Ejemplo n.º 1
0
        // GET: Index
        public ActionResult Index()
        {
            DataTable dt = new DataTable();

            using (SQLiteConnector connector = new SQLiteConnector())
            {
                dt = connector.LoadData("Select * from posts");
            }


            using (SQLiteConnector connector = new SQLiteConnector())
            {
                connector.ExecuteQuery("insert into posts(title,content,created) values('başlık','content','tarih')");
            }


            return(View());
        }