c# - 如何在 UWP 上将 SQLite 与 Entity Framework 6 一起使用?

标签 c# entity-framework sqlite entity-framework-6 uwp

我现在正在为通用 Windows 应用程序开发模型类。是否有可能在此项目中同时使用 EF6 和 SQLite,还是我应该仅使用 EF7 的预发布版本?

最佳答案

当然,您现在可以使用 Microsoft.EntityFrameworkCore.Sqlite,但需要一些解决方法。

Useful documentation

A useful walkthrough

解决方法:

adding an app.config to application layer UWP## Heading ##

Add Ms.EfCore.Tools to app layer (natemcmaster commented on 3 May)

希望对你有帮助

关于c# - 如何在 UWP 上将 SQLite 与 Entity Framework 6 一起使用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33169352/

相关文章:

c# - Restful 网址。查看特定型号

c# - 当我在 .net 框架中将源代码编译为 exe 文件时会发生什么

c# - 在 ViewModel 中访问 Xamarin.Forms

c# - 如果 C# 满足条件,则将元素插入列表

entity-framework - 喜欢 and And 或者 ISNull 使用 Linq to Entity Entity Framework4?你是怎样做的?

c# - 我的模拟 DbContext 使用 Moq 在单元测试中写入数据库

python - 嵌套 SELECT 查询有时会停止

sql - 如果 SQLite 中存在则删除列?

java - 我如何减少 SQLite 表的 int 列

c# - 如何从 Entity Framework 6 中的 Auditlog 实体获取 ID