尝试使用添加迁移新的项目...... [英] Trying to use add-migration a new projet...
问题描述
嗨专家。我目前尝试添加迁移来为我的项目创建SqLite类。在另一个项目上,一切都很好,但是对于这个项目,我使用了更新的UWP版本(14393)和视觉工作室2017.
Hi expert. I currently try to add-migration to create the SqLite class for my projet. On another projet all is working good, but for this one, I use a newer UWP build (14393) and visual studio 2017.
我按照这个链接 https://docs.microsoft.com/en-us/ef/core/get-started/uwp/getting-started
I follow this link https://docs.microsoft.com/en-us/ef/core/get-started/uwp/getting-started
并添加
- Microsoft.EntityFrameworkCore.Sqlite
- Microsoft.EntityFrameworkCode.Tools
然后剪切和粘贴y model.cs代码和我的所有表格代码。然后运行add-migration InitialDB
then cut ans paste y model.cs code and all my table code. Then run add-migration InitialDB
我总是遇到这个错误:
System.Reflection.TargetInvocationException:目标调用引发异常。 ---> System.TypeInitializationException:'KelvinPunch.SqLite.PunchContext'引发异常。 ---> System.DllNotFoundException:无法加载DLL的'sqlite3'
System.Reflection.TargetInvocationException: Exception raise by target call. ---> System.TypeInitializationException: Exception raise by 'KelvinPunch.SqLite.PunchContext'. ---> System.DllNotFoundException: Cannot load DLL 'sqlite3'
DLL在bin文件夹中!有什么帮助吗?
the DLL are in the bin folders! Any help?
PS:我将重新安装VS2015并尝试使用它。
PS: I will reinstall VS2015 and try with it.
Pierre
推荐答案
嗨皮埃尔,
SQLite不是微软的产品,我知道有一些文档可供使用,例如
https://docs.microsoft.com/en-us/windows/uwp/data-access/sqlite-databases 。
SQLite is not a Microsoft product but I do know there are some docs on it's use such as https://docs.microsoft.com/en-us/windows/uwp/data-access/sqlite-databases .
也许在其他论坛中有一些帖子可以提供帮助?
https://social.msdn.microsoft.com/论坛/ en-US / home?sort = relevantdesc& brandIgnore = True& searchTerm = SQLite
Maybe there are some postings in other forums that would help? https://social.msdn.microsoft.com/Forums/en-US/home?sort=relevancedesc&brandIgnore=True&searchTerm=SQLite
更有可能是所有事情的最佳来源SQLite是他们自己的网站,因为他们有自己的开发论坛如果您查看其支持链接,请 http://sqlite.org/ 。
More likely the best source for all things SQLite is their own site as they do have their own dev forum http://sqlite.org/ if you look under their support link.
此致,
IoTGirl
这篇关于尝试使用添加迁移新的项目......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!