如何使用dapper连接到sqlite数据库? [英] How can i use dapper to connect to a sqlite database?
本文介绍了如何使用dapper连接到sqlite数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用dapper连接并从sqlite数据库中获取数据?
How can I use dapper to connect and get data from a sqlite database?
推荐答案
您没有什么神奇的需要做。只需添加:
There is nothing magical you need to do. Just add:
使用Dapper;
在打开的 SqliteConnection
cnn.Query(选择 hello world从表中)
这篇关于如何使用dapper连接到sqlite数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文