How can i use dapper to connect to a sqlite database?

后端 未结 2 984
Happy的楠姐
Happy的楠姐 2021-02-12 17:40

How can I use dapper to connect and get data from a sqlite database?

2条回答
  •  我寻月下人不归
    2021-02-12 18:10

    There is nothing magical you need to do. Just add:

    using Dapper;

    And run queries on your open SqliteConnection

    cnn.Query("select 'hello world' from Table")

提交回复
热议问题