system.data.sqlite.sqliteException:SQL逻辑错误
创建了一个由一个人组成的sqlite数据库。 没有这样的表:Person'在代码中显示:
*var output = cnn.Query<ListPeopleModel>(" Select * from Person;", new DynamicParameters());
return output.ToList();*
其中person
是我的数据库的名称, listPeoplemodel 是我的模型类。 。
A Sqlite Database was created that consists on a persons FirstName and LastName.When the code is executed, System.Data.SQLite.SQLiteException: 'SQL logic error
no such table: Person' is shown at code :
*var output = cnn.Query<ListPeopleModel>(" Select * from Person;", new DynamicParameters());
return output.ToList();*
where Person
is the name of my database and ListPeopleModel is my Model Class.
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
SQLITE使用您使用的类的名称来构建数据库作为表。因此,请替换
为:
SQLite uses the name of the class you use to construct the database as the table. So just replace:
with: