How do I use SQLite when building web pages with Websharper or Suave?

I am creating a site that works to get data from "input" to update the database from the server side.


For this, of course, I have to use a server side call and then use SQLite to be able to update the data in the database (* .db file).

But feel free, I got unwanted ones:

System.Exception: Could not load method (act : unit -> Microsoft.FSharp.Control.FSharpAsync`1<unit>) candidates: [||]

      

I don't know how to fix this, please help me!


Main.fs: https://gist.github.com/tungandcun/3d0a8c5008343861624d94d3e52c56a4

Client.fs: https://gist.github.com/tungandcun/c43fb92bb9e8956dbd9332779c9bfd72

Remoting.fs: https://gist.github.com/tungandcun/980ecb346f886fd6f710eebe0b160823

sample.fs: https://gist.github.com/tungandcun/465b19b60a64b4b6c578e3704c155a0e


And I installed the following packages from Nuget: SQLProvider System.Data.SQLite.Core

Many thanks!

0


source to share





All Articles